if (self.CavalryLogger) { CavalryLogger.start_js(["E5eRK"]); } __d("AdsCMURLValuesMap",[],(function(a,b,c,d,e,f){e.exports={account_settings:"account_settings",ad_group:"ad",audiences:"audiences",billing:"billing",blocklists:"blocklists",campaign_group:"campaign",campaign:"adset",canvas_builder:"canvas_builder",creation:"creation",data_source:"data-sources","delivery-insights":"delivery-insights","custom-conversions":"custom-conversions",pixel:"pixel",account:"account",pages:"pages",pixel_detail:"pixel_detail",media:"media",data_set:"data_set",rules:"rules",notifications:"notifications",targeting_insights:"targeting-insights",account_quality:"account_quality",account_attribution_spec:"account_attribution",account_billing_settings:"account_billing",account_information:"information",account_notifications:"notification_preferences",account_roles:"roles",account_page_settings:"account_pages",accounts:"accounts",ad_groups:"ads",audiences_manage:"manage",audience_detail_tab:"detail",blocklists_manager:"list",blocklist_detail_tab:"blocklist_detail",creatives:"creatives",pixel_list_tab:"pixels",pixel_detail_tab:"detail",unified_pixel_tab:"facebook_pixel",conversion_list:"conversion_list",conversion_pixel_tab:"conversion_pixel",pixel_migration_tab:"pixel_migration",media_library_tab:"library",campaign_groups:"campaigns",campaigns:"adsets",account_history_tab:"history",campaign_group_history_tab:"history",campaign_history_tab:"history",adgroup_history_tab:"history",list_tab:"list",payment_methods:"payment_methods",rules_management_tab:"management",settings:"settings",spend_limit:"spend_limit",tracking_id:"reference_number",transactions:"transactions",transaction_details:"transaction_details",transactions_by_page:"transactions_by_page",show_older_receipts:"show_older_receipts",table_overview:"table_overview",categories:"categories",markets:"markets",market_details:"market_details",targeting_insights_overview:"targeting_insights_overview",nota_fiscals:"nota_fiscals",account_name_template:"account_name_template"}}),null); __d("AdsContractIOType",[],(function(a,b,c,d,e,f){e.exports={UNSPECIFIED:"UNSPECIFIED",RF:"RF"}}),null); __d("AdsDeliveryOffsiteCustomEventStrings",["fbt"],(function(a,b,c,d,e,f,g){e.exports={ACHIEVEMENT_UNLOCKED:g._("Achievement Unlocked"),ACTIVATE_APP:g._("Activate App"),ADD_PAYMENT_INFO:g._("Add Payment Info"),ADD_TO_CART:g._("Add to Cart"),ADD_TO_WISHLIST:g._("Add to WishList"),COMPLETE_REGISTRATION:g._("Complete Registration"),CONTENT_VIEW:g._("Content View"),FLOW_COMPLETE:g._("Flow Complete"),INITIATED_CHECKOUT:g._("Initiated Checkout"),LEAD:g._("Lead"),LEVEL_ACHIEVED:g._("Level Achieved"),MESSAGING_ACCEPT:g._("Messaging Accept"),MESSAGING_BLOCK:g._("Messaging Block"),MESSAGING_DELETE_THREAD:g._("Messaging Delete Thread"),MESSAGING_MARK_SPAM:g._("Messaging Mark Spam"),MESSAGING_REPLY:g._("Messaging Reply"),MESSAGING_FIRST_REPLY:g._("Messaging First Reply"),MESSAGING_OPEN_THREAD:g._("Messaging Open Thread"),MESSAGING_IGNORE_REQUEST:g._("Messaging Ignore Request"),MESSAGING_PROMOTIONAL_OFF:g._("Messaging Promotional Off"),MESSAGING_READ_RECEIPT:g._("Messaging Read Receipt"),MESSAGING_DELIVERY_RECEIPT:g._("Messaging Delivery Receipt"),MESSAGING_DELETE_MESSAGE:g._("Messaging Deleted Message"),MESSAGING_CONVERSATION_STARTED_7D:g._("Messaging Conversations Started"),OTHER:g._("Other"),PURCHASE:g._("Purchase"),RATE:g._("Rate"),SEARCH:g._("Search"),SPENT_CREDITS:g._("Spent Credits"),TUTORIAL_COMPLETION:g._("Tutorial Completion")}}),null); __d("AdsReachFrequencyContinentMap",[],(function(a,b,c,d,e,f){e.exports={country_regions:{AD:"WE",AE:"ME",AF:"APAC",AG:"LATAM",AI:"LATAM",AL:"CEE",AM:"CEE",AN:"LATAM",AO:"A",AQ:"ROW",AR:"LATAM",AS:"APAC",AT:"WE",AU:"APAC",AW:"LATAM",AX:"WE",AZ:"CEE",BA:"CEE",BB:"LATAM",BD:"APAC",BE:"WE",BF:"A",BG:"CEE",BH:"ME",BI:"A",BJ:"A",BL:"LATAM",BM:"LATAM",BN:"APAC",BO:"LATAM",BQ:"LATAM",BR:"LATAM",BS:"LATAM",BT:"APAC",BV:"ROW",BW:"A",BY:"CEE",BZ:"LATAM",CA:"CA",CC:"APAC",CD:"A",CF:"A",CG:"A",CH:"WE",CI:"A",CK:"APAC",CL:"LATAM",CM:"A",CN:"APAC",CO:"LATAM",CR:"LATAM",CU:"LATAM",CV:"A",CW:"LATAM",CX:"APAC",CY:"CEE",CZ:"CEE",DE:"WE",DJ:"A",DK:"WE",DM:"LATAM",DO:"LATAM",DZ:"A",EC:"LATAM",EE:"CEE",EG:"A",EH:"A",ER:"A",ES:"WE",ET:"A",EU:"WE",FI:"WE",FJ:"APAC",FK:"LATAM",FM:"APAC",FO:"WE",FR:"WE",GA:"A",GB:"WE",GD:"LATAM",GE:"CEE",GF:"LATAM",GG:"WE",GH:"A",GI:"WE",GL:"WE",GM:"A",GN:"A",GP:"LATAM",GQ:"A",GR:"CEE",GS:"ROW",GT:"LATAM",GU:"APAC",GW:"A",GY:"LATAM",HK:"APAC",HM:"ROW",HN:"LATAM",HR:"CEE",HT:"LATAM",HU:"CEE",ID:"APAC",IE:"WE",IL:"ME",IM:"WE",IN:"APAC",IO:"A",IQ:"ME",IR:"ME",IS:"WE",IT:"WE",JE:"WE",JM:"LATAM",JO:"ME",JP:"APAC",KE:"A",KG:"APAC",KH:"APAC",KI:"APAC",KM:"A",KN:"LATAM",KP:"APAC",KR:"APAC",KW:"ME",KY:"LATAM",KZ:"APAC",LA:"APAC",LB:"ME",LC:"LATAM",LI:"WE",LK:"APAC",LR:"A",LS:"A",LT:"CEE",LU:"WE",LV:"CEE",LY:"A",MA:"A",MC:"WE",MD:"CEE",ME:"CEE",MF:"LATAM",MG:"A",MH:"APAC",MK:"CEE",ML:"A",MM:"APAC",MN:"APAC",MO:"APAC",MP:"APAC",MQ:"LATAM",MR:"A",MS:"LATAM",MT:"WE",MU:"A",MV:"APAC",MW:"A",MX:"LATAM",MY:"APAC",MZ:"A",NA:"A",NC:"APAC",NE:"A",NF:"APAC",NG:"A",NI:"LATAM",NL:"WE",NO:"WE",NP:"APAC",NR:"APAC",NU:"APAC",NZ:"APAC",OM:"ME",PA:"LATAM",PE:"LATAM",PF:"APAC",PG:"APAC",PH:"APAC",PK:"APAC",PL:"CEE",PM:"WE",PN:"APAC",PR:"LATAM",PS:"ME",PT:"WE",PW:"APAC",PY:"LATAM",QA:"ME",RE:"A",RO:"CEE",RS:"CEE",RU:"CEE",RW:"A",SA:"ME",SB:"APAC",SC:"A",SD:"A",SE:"WE",SG:"APAC",SH:"A",SI:"CEE",SJ:"WE",SK:"CEE",SL:"A",SM:"WE",SN:"A",SO:"A",SR:"LATAM",SS:"A",ST:"A",SV:"LATAM",SX:"LATAM",SY:"ME",SZ:"A",TC:"LATAM",TD:"A",TF:"ROW",TG:"A",TH:"APAC",TJ:"APAC",TK:"APAC",TL:"APAC",TM:"APAC",TN:"A",TO:"APAC",TR:"CEE",TT:"LATAM",TV:"APAC",TW:"APAC",TZ:"A",UA:"CEE",UG:"A",UM:"APAC",US:"US",UY:"LATAM",UZ:"APAC",VA:"WE",VC:"LATAM",VE:"LATAM",VG:"LATAM",VI:"LATAM",VN:"APAC",VU:"APAC",WF:"APAC",WS:"APAC",XK:"CEE",YE:"ME",YT:"A",ZA:"A",ZM:"A",ZW:"A"}}}),null); __d("AdsSplitTestVariableFieldMapping",[],(function(a,b,c,d,e,f){e.exports={OPTIMIZATION:["billing_event","is_autobid","optimization_goal","optimization_sub_event","is_average_price_pacing","attribution_window_days","attribution_spec","bid_amount","bid_constraints","frequency_cap","frequency_cap_reset_period","frequency_control_specs","promoted_object","full_funnel_exploration_mode","bid_strategy"],TARGETING:["saved_audience","saved_audience_id","targeting","optimization_sub_event"],PLACEMENT:["placement"],CREATIVE:["creative","asset_feed_spec","playable_asset_id","platform_customizations","product_set_id","interactive_components_spec"],PRODUCT_SET:["promoted_object","targeting","product_set_id"],FREEFORM:[],AD_KEYWORDS:["ad_keywords"]}}),null); __d("CrStFormatConstants",[],(function(a,b,c,d,e,f){e.exports={instagramFormats:["INSTAGRAM_CAROUSEL","INSTAGRAM_IMAGE","INSTAGRAM_STORY","INSTAGRAM_STORY_CAROUSEL","INSTAGRAM_VIDEO"],mockupUnsupportedFormats:["LEADGEN"]}}),null); __d("ReachFrequencyPredictionModes",[],(function(a,b,c,d,e,f){e.exports={REACH:{name:"REACH",value:0},BUDGET:{name:"BUDGET",value:1},PREDEFINED:{name:"PREDEFINED",value:2},IMPRESSION:{name:"IMPRESSION",value:3},TRP:{name:"TRP",value:4}}}),null); __d("AdsCampaignCatalogUIDataProviderPlugin",["immutable"],(function(a,b,c,d,e,f){"use strict";a={initialState:b("immutable").Map()};e.exports=a}),null); __d("AdsCampaignCatalogUIDataProvider",["Laminar","AdsCampaignCatalogUIDataProviderPlugin"],(function(a,b,c,d,e,f){"use strict";e.exports=b("Laminar").__createProvider(b("AdsCampaignCatalogUIDataProviderPlugin"),"AdsCampaignCatalogUIDataProviderPlugin")}),null); __d("AdsCampaignChangeSuggestedNameDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"CAMPAIGN.CHANGE_SUGGESTED_NAME"}}),null); __d("AdsUEditorDLOLoggingEvents",[],(function(a,b,c,d,e,f){"use strict";a={DLO_UI_ADD_LANGUAGE_BUTTON_CLICKED:"DLO_UI_ADD_LANGUAGE_BUTTON_CLICKED",DLO_UI_ADD_PRIMARY_LANGUAGE_BUTTON_CLICKED:"DLO_UI_ADD_PRIMARY_LANGUAGE_BUTTON_CLICKED",DLO_UI_AUTOTRANSLATE_AUTOTRANSLATION_COMPLETE:"DLO_UI_AUTOTRANSLATE_AUTOTRANSLATION_COMPLETE",DLO_UI_AUTOTRANSLATE_AUTOTRANSLATION_ERROR:"DLO_UI_AUTOTRANSLATE_AUTOTRANSLATION_ERROR",DLO_UI_AUTOTRANSLATE_PRIMARY_FIELD_EDITED:"DLO_UI_AUTOTRANSLATE_PRIMARY_FIELD_EDITED",DLO_UI_AUTOTRANSLATE_PRIMARY_FIELD_EDITED_OUTSIDE_DLO_DIALOG:"DLO_UI_AUTOTRANSLATE_PRIMARY_FIELD_EDITED_OUTSIDE_DLO_DIALOG",DLO_UI_AUTOTRANSLATE_RETRY_AUTOTRANSLATION_REQUEST_BUTTON_CLICKED:"DLO_UI_AUTOTRANSLATE_RETRY_AUTOTRANSLATION_REQUEST_BUTTON_CLICKED",DLO_UI_AUTOTRANSLATE_REVERTED_BUTTON_CLICKED:"DLO_UI_AUTOTRANSLATE_REVERTED_BUTTON_CLICKED",DLO_UI_AUTOTRANSLATE_UPDATE_ALL_TRANSLATIONS_BUTTON_CLICKED:"DLO_UI_AUTOTRANSLATE_UPDATE_ALL_TRANSLATIONS_BUTTON_CLICKED",DLO_UI_AUTOTRANSLATE_ADD_LANGUAGE_WITH_UNAVAILABLE_AUTOTRANSLATE:"DLO_UI_AUTOTRANSLATE_ADD_LANGUAGE_WITH_UNAVAILABLE_AUTOTRANSLATE",DLO_UI_BLOCKER_HOVER_CARD_CLICK:"DLO_UI_BLOCKER_HOVER_CARD_CLICK",DLO_UI_BLOCKER_HOVER_CARD_SHOW:"DLO_UI_BLOCKER_HOVER_CARD_SHOW",DLO_UI_CONVERT_PAC_TO_LPA:"DLO_UI_CONVERT_PAC_TO_LPA",DLO_UI_CREATE_SLIDESHOW_BUTTON_CLICKED:"DLO_UI_CREATE_SLIDESHOW_BUTTON_CLICKED",DLO_UI_DIALOG_ADD_ADDITIONAL_CREATIVE:"DLO_UI_DIALOG_ADD_ADDITIONAL_CREATIVE",DLO_UI_DIALOG_ADD_LANGUAGE:"DLO_UI_DIALOG_ADD_LANGUAGE",DLO_UI_DIALOG_CHANGE_LANGUAGE:"DLO_UI_DIALOG_CHANGE_LANGUAGE",DLO_UI_DIALOG_DISABLE_ADD_LANGUAGE_BUTTON_FOR_LPA:"DLO_UI_DIALOG_DISABLE_ADD_LANGUAGE_BUTTON_FOR_LPA",DLO_UI_DIALOG_DISMISS_NO_CHANGES:"DLO_UI_DIALOG_DISMISS_NO_CHANGES",DLO_UI_DIALOG_DISMISS_UNSAVED_CHANGES:"DLO_UI_DIALOG_DISMISS_UNSAVED_CHANGES",DLO_UI_DIALOG_MAX_LANGUAGES_ADDED:"DLO_UI_DIALOG_MAX_LANGUAGES_ADDED",DLO_UI_DIALOG_OPEN:"DLO_UI_DIALOG_OPEN",DLO_UI_DIALOG_OPEN_WITH_OUTDATED_AUTOTRANSLATION:"DLO_UI_DIALOG_OPEN_WITH_OUTDATED_AUTOTRANSLATION",DLO_UI_DIALOG_REMOVE_LANGUAGE:"DLO_UI_DIALOG_REMOVE_LANGUAGE",DLO_UI_DIALOG_SAVED:"DLO_UI_DIALOG_SAVED",DLO_UI_DIALOG_SAVE_ERRORS:"DLO_UI_DIALOG_SAVE_ERRORS",DLO_UI_DIALOG_SAVE_WITH_OUTDATED_TRANSLATION:"DLO_UI_DIALOG_SAVE_WITH_OUTDATED_TRANSLATION",DLO_UI_DIALOG_SAVE_WITH_ALTERED_TRANSLATION:"DLO_UI_DIALOG_SAVE_WITH_ALTERED_TRANSLATION",DLO_UI_DIALOG_SELECT_LANGUAGE:"DLO_UI_DIALOG_SELECT_LANGUAGE",DLO_UI_DISABLE_LINKS:"DLO_UI_DISABLE_LINKS",DLO_UI_EDIT_AUTOTRANSLATION_TEXT:"DLO_UI_EDIT_AUTOTRANSLATION_TEXT",DLO_UI_ENABLE_LINKS:"DLO_UI_ENABLE_LINKS",DLO_UI_ENTRYPOINT_LOADED:"DLO_UI_ENTRYPOINT_LOADED",DLO_UI_HIDE_DEFAULT_LANGUAGE_BUTTON_CLICKED:"DLO_UI_HIDE_DEFAULT_LANGUAGE_BUTTON_CLICKED",DLO_UI_LANGUAGE_TYPEAHEAD_ERROR:"DLO_UI_LANGUAGE_TYPEAHEAD_ERROR",DLO_UI_PLACEMENT_CUSTOMIZATIONS_REMOVED:"DLO_UI_PLACEMENT_CUSTOMIZATIONS_REMOVED",DLO_UI_REMOVE_DLO_FROM_LPA:"DLO_UI_REMOVE_DLO_FROM_LPA",DLO_UI_SHOW_DEFAULT_LANGUAGE_BUTTON_CLICKED:"DLO_UI_SHOW_DEFAULT_LANGUAGE_BUTTON_CLICKED",DLO_UI_SLIDESHOW_START_UPLOADING:"DLO_UI_SLIDESHOW_START_UPLOADING",DLO_UI_SLIDESHOW_FINISH_UPLOADING:"DLO_UI_SLIDESHOW_FINISH_UPLOADING",DLO_UI_TYPEAHEAD_OTHER_LANGUAGE_SELECTED:"DLO_UI_TYPEAHEAD_OTHER_LANGUAGE_SELECTED",DLO_UI_TYPEAHEAD_RECOMMENDED_LANGUAGE_SELECTED:"DLO_UI_TYPEAHEAD_RECOMMENDED_LANGUAGE_SELECTED",DLO_UI_UNSUPPORTED_PLACEMENTS_REMOVED:"DLO_UI_UNSUPPORTED_PLACEMENTS_REMOVED",DLO_UI_UNSUPPORTED_PLACEMENTS_WARNING_SHOWN:"DLO_UI_UNSUPPORTED_PLACEMENTS_WARNING_SHOWN",DLO_UI_USE_VIDEO_TEMPLATE_BUTTON_CLICKED:"DLO_UI_USE_VIDEO_TEMPLATE_BUTTON_CLICKED",DLO_UI_VIDEO_TEMPLATE_START_UPLOADING:"DLO_UI_VIDEO_TEMPLATE_START_UPLOADING",DLO_UI_VIDEO_TEMPLATE_FINISH_UPLOADING:"DLO_UI_VIDEO_TEMPLATE_FINISH_UPLOADING"};e.exports=a}),null); __d("DLOEventSource",[],(function(a,b,c,d,e,f){"use strict";a={REMOVE_PLACEMENT_CUSTOMIZATIONS:"dlo_remove_placement_customizations",REMOVE_UNSUPPORTED_PLACEMENTS:"dlo_remove_unsupported_placements",REMOVE_UNSUPPORTED_PLACEMENTS_WHEN_CHANGES_SAVED:"dlo_remove_unsupported_placements_when_changes_saved"};e.exports=a}),null); __d("AdsCampaignPlacementSetLoggerPlugin",["AdsInterfacesLogger","AdsUEditorDLOLoggingEvents","DLOEventSource"],(function(a,b,c,d,e,f){"use strict";a={log:function(a){a.eventSource===b("DLOEventSource").REMOVE_UNSUPPORTED_PLACEMENTS&&b("AdsInterfacesLogger").log({eventName:b("AdsUEditorDLOLoggingEvents").DLO_UI_UNSUPPORTED_PLACEMENTS_REMOVED},b("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP)}};e.exports=a}),null); __d("AdsCampaignPlacementSetDataAction",["Laminar","AdsCampaignPlacementSetLoggerPlugin"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[b("Laminar").__createLogger("AdsCampaignPlacementSetLoggerPlugin",b("AdsCampaignPlacementSetLoggerPlugin"),{})]},"CAMPAIGN.PLACEMENT.SET");e.exports=a}),null); __d("AdsCampaignPlacementSetFromAPISpecDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"CAMPAIGN.PLACEMENT.SET_FROM_API_SPEC"}}),null); __d("AdsCampaignPromotedObjectSetOfflineOptimizationFieldsDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"CAMPAIGN.PROMOTED_OBJECT.SET_OFFLINE_OPTIMIZATION_FIELDS"}}),null); __d("AdsCampaignRemoveOfflineEventPromotedObjectTypeDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"CAMPAIGN.REMOVE_OFFLINE_EVENT_PROMOTED_OBJECT_TYPE"}}),null); __d("AdsCampaignResetOptimizationGoalToReachDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"CAMPAIGN.OPTIMIZATION_GOAL.RESET_TO_REACH"}}),null); __d("AdsCampaignSelectAppStoreAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"CAMPAIGN.SET_APP_STORE");e.exports=a}),null); __d("AdsCampaignSelectAppStoreActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"CAMPAIGN.SET_APP_STORE"}}),null); __d("AdsCampaignSelectAppStoreCountryAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"CAMPAIGN.SET_APP_STORE_COUNTRY");e.exports=a}),null); __d("AdsCampaignSelectAppStoreCountryActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"CAMPAIGN.SET_APP_STORE_COUNTRY"}}),null); __d("AdsCampaignShouldShowAppStoreCountryCheckboxActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"CAMPAIGN.SET_SHOW_APP_STORE_COUNTRY_CHECKBOX"}}),null); __d("AdsCFActiveCampaignGroupIDProviderPlugin",["AdsCFConstants","immutable"],(function(a,b,c,d,e,f){"use strict";a=b("AdsCFConstants").NEW_CAMPAIGN_GROUP_ID;c={initialState:b("immutable").Set([a])};e.exports=c}),null); __d("AdsCFActiveCampaignGroupIDProvider",["Laminar","AdsCFActiveCampaignGroupIDProviderPlugin"],(function(a,b,c,d,e,f){"use strict";e.exports=b("Laminar").__createProvider(b("AdsCFActiveCampaignGroupIDProviderPlugin"),"AdsCFActiveCampaignGroupIDProviderPlugin")}),null); __d("AdsCFAdgroupDataProviderPlugin",["ifRequired","immutable"],(function(a,b,c,d,e,f){"use strict";a={initialState:b("immutable").Map(),legacyFluxReduce:function(a,c){var d=a;b("ifRequired")("AdsCFAdgroupLegacyFluxReduce",function(b){d=b.legacyFluxReduce(a,c)});return d},shouldWeakRequireReducers:!0};e.exports=a}),null); __d("AdsCFNewAdgroupFBID",[],(function(a,b,c,d,e,f){"use strict";a="NEW_ADGROUP_ID";e.exports=a}),null); __d("AdsCFAdgroupIDUtils",["AdsCFNewAdgroupFBID"],(function(a,b,c,d,e,f){"use strict";a={getID:function(a){a===void 0&&(a=0);return b("AdsCFNewAdgroupFBID")+"-"+a}};e.exports=a}),null); __d("AdsCFAdgroupStateUtils",["invariant","AdsAPIAdgroupPaths","AdsCFAdgroupIDUtils","LoadObject","immutable"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h={getAdgroupRecords:function(a){return a.map(function(a){return a.getValueEnforcing()}).valueSeq().toArray()},getAdgroupRecordAtIndex:function(a,b){b0};d.isCreatingNewCampaignGroup=function(){return this.getState().currentMode===b("AdsCFConstants").CreateMode.CREATE_NEW_CAMPAIGN_GROUP};d.isCreatingNewCampaign=function(){return this.getState().currentMode===b("AdsCFConstants").CreateMode.CREATE_NEW_CAMPAIGN};d.isCreatingNewAdgroup=function(){return this.getState().currentMode===b("AdsCFConstants").CreateMode.CREATE_NEW_AD_GROUP};d.isCreatingNew=function(){var a=this.getState().currentMode;return a===b("AdsCFConstants").CreateMode.CREATE_NEW_AD_GROUP||a===b("AdsCFConstants").CreateMode.CREATE_NEW_CAMPAIGN||a===b("AdsCFConstants").CreateMode.CREATE_NEW_CAMPAIGN_GROUP};d.isCreatingSimilarCampaign=function(){return this.getState().currentMode===b("AdsCFConstants").CreateMode.CREATE_SIMILAR_CAMPAIGN};d.isCreatingSimilar=function(){return this.getState().currentMode===b("AdsCFConstants").CreateMode.CREATE_SIMILAR};d.isPageAnimationEnabled=function(){return!!this.getState().pageAnimationEnabled};d.loadCampaignGroups=function(){this.getState().loadCampaignGroups()};d.loadCampaigns=function(){this.getState().loadCampaigns()};d.createDraft=function(a,b,c,d,e){var f;e===void 0&&({isSplitTest:!1});(f=this.getState()).createDraft.apply(f,[this.getState().creationExperienceMode].concat(Array.prototype.slice.call(arguments)))};d.closeCreation=function(a){a===void 0&&(a=!1),this.getState().closeCreation(this.getState().creationExperienceMode,a)};d.handlePostCreation=function(a,b){this.getState().handlePostCreation(a,b)};d.switchToQuickCreation=function(){b("AdsCFApplicationConfig").getCreationSource()==="pe"||g(0,6126),this.getState().switchToQuickCreation()};d.reduce=function(a,c){__p&&__p();c=c.action;if(!b("AdsUEditorUtils").shouldHostHandleAction(c,b("AdsUEditorHostIDs").CREATION))return a;a=a;i.has(c.actionType)?a=a.merge({numChangesToCampaign:a.numChangesToCampaign+1}):j.has(c.actionType)&&(a=a.merge({adgroupChanged:!0}));switch(c.actionType){case b("AdsCFCampaignGroupAccountInitDataActionFlux").actionType:return a.merge({creationStepMapping:o()});case"ADS_CM_PAGE_CHANGE":if(c.data.state.PAGE!==b("AdsCMStateConfig").PAGE.values.CREATION_PAGE)return a;var d=b("AdsCMURIUtil").generateURI(c.data.state);return a.merge(babelHelpers["extends"]({pageAnimationEnabled:!0,uri:d},n(d)));case b("AdsCFInitStartedDataActionFlux").actionType:return a.merge({closeCreation:c.closeCreation,createDraft:c.createDraft,loadCampaigns:c.loadCampaigns,loadCampaignGroups:c.loadCampaignGroups,handlePostCreation:c.handlePostCreation,isNavigationAction:c.isNavigationAction,creationExperienceMode:c.creationExperienceMode,externalCreationSource:c.externalCreationSource,switchToQuickCreation:c.switchToQuickCreation,isCFActive:!0,isLoading:!0}).set("placeOrderConfig",c.placeOrderConfig);case b("AdsCFInitDataLoadedActionFlux").actionType:return a.merge({dataState:b("AdsCFConstants").DataStates.SUCCESS});case b("AdsCFInitDataFetchErrorDataActionFlux").actionType:return a.merge({dataState:b("AdsCFConstants").DataStates.FAILURE});case b("AdsPageTransitionActionFlux").actionType:d=a.uri||new(b("URI"))(window.location.href);return a.merge(n(d));case b("AdsCFKpiObjectiveChangeDataActionFlux").actionType:case b("AdsUEditorCampaignSelectWebsitePromotedObjectTypeDataActionFlux").actionType:case b("AdsUEditorCampaignSelectMessengerPromotedObjectTypeDataActionFlux").actionType:case b("AdsUEditorCampaignSelectWhatsAppPromotedObjectTypeDataActionFlux").actionType:case b("AdsUEditorCampaignSelectAppPromotedObjectTypeDataActionFlux").actionType:case b("AdsUEditorCampaignSelectPixelPromotedObjectTypeDataActionFlux").actionType:case b("AdsUEditorCampaignSetOfflineFromPageSetPromotedObjectTypeDataActionFlux").actionType:case b("AdsUEditorCampaignSetPageSetFromOfflinePromotedObjectTypeDataActionFlux").actionType:return a.merge({adgroupChanged:!1,numChangesToCampaign:-1});case b("AdsCFCampaignGroupsLoadedDataActionFlux").actionType:return a.merge({isLoading:!1});case b("AdsCFSavedStateSyncClearCurrentStateDataActionFlux").actionType:return a.merge({isLoading:!0});case b("AdsCFNavigationWizardSectionNavigateToFirstErrorDataActionFlux").actionType:return a.merge({hasNavigatedToFirstError:!0});default:return a}};return c}(b("FluxReduceStore"));c.__moduleID=e.id;d=new c(b("AdsDataAtom"));a.debug_AdsCFApplicationStore=d;e.exports=d}),null); __d("adsCFGetApplicationCreationExperienceMode_HACK",["AdsCFApplicationStore","AdsDataAtom"],(function(a,b,c,d,e,f){"use strict";e.exports=function(){b("AdsDataAtom").isDispatching()&&b("AdsDataAtom").waitFor([b("AdsCFApplicationStore").getDispatchToken()]);return b("AdsCFApplicationStore").getState().creationExperienceMode}}),null); __d("AdsMockupBatchLoadErrorDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"MOCKUP.BATCH_LOAD_ERROR");e.exports=a}),null); __d("AdsMockupBatchLoadErrorDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"MOCKUP.BATCH_LOAD_ERROR"}}),null); __d("AdsMockupBatchLoadedDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"MOCKUP.BATCH_LOADED");e.exports=a}),null); __d("AdsMockupBatchLoadedDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"MOCKUP.BATCH_LOADED"}}),null); __d("XCrStReadMockupAsyncController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/ads/creativehub/async/mockup/",{id:{type:"FBID",required:!0}})}),null); __d("AdsMockupDataStore",["AdsAPIAdgroupObjectStorySpecRecord","AdsAPIAdgroupPaths","AdsAPIAdgroupRecord","AdsDataAtom","AdsMockupBatchLoadedDataAction","AdsMockupBatchLoadedDataActionFlux","AdsMockupBatchLoadErrorDataAction","AdsMockupBatchLoadErrorDataActionFlux","AsyncRequest","FluxLoadObjectStore","XCrStReadMockupAsyncController","immutable"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.__getActionTypes=function(){return[this.getActionTypeStartLoad(),b("AdsMockupBatchLoadErrorDataActionFlux").actionType,b("AdsMockupBatchLoadedDataActionFlux").actionType]};d.reduce=function(a,c){c=c.action;switch(c.type){case b("AdsMockupBatchLoadedDataActionFlux").actionType:return this.__handleMap(a,c.mockups);case b("AdsMockupBatchLoadErrorDataActionFlux").actionType:return this.__handleMap(a,c.errors);default:return a}};d.__load=function(a){var c=b("XCrStReadMockupAsyncController").getURIBuilder().setFBID("id",a).getURI();new(b("AsyncRequest"))(c).setHandler(function(c){c=c.payload.mockup;var d=JSON.parse(c.creative),e=c.storedOnDarkPage;e=g(d,e);c=babelHelpers["extends"]({},c,{creative:d,adgroup:e});b("AdsMockupBatchLoadedDataAction").dispatch({mockups:new Map([[a,c]])},{line:"73",module:"AdsMockupDataStore.js"})}).setErrorHandler(function(c){b("AdsMockupBatchLoadErrorDataAction").dispatch({errors:new Map([[a,new Error(c)]])},{line:"78",module:"AdsMockupDataStore.js"})}).send()};return c}(b("FluxLoadObjectStore"));a.__moduleID=e.id;var g=function(a,c){return new(b("AdsAPIAdgroupRecord"))().setIn(b("AdsAPIAdgroupPaths").CREATIVE.OBJECT_TYPE,a.object_type).setIn(b("AdsAPIAdgroupPaths").CREATIVE.OBJECT_STORY_SPEC.path,new(b("AdsAPIAdgroupObjectStorySpecRecord"))(babelHelpers["extends"]({},a.object_story_spec,(a={},a.instagram_actor_id=null,a),c?(a={},a.page_id=null,a):{})))};e.exports=new a(b("AdsDataAtom"))}),null); __d("adsMockupForCreationSelector",["AdsMockupDataStore","AdsMockupProvider","LoadObject","adsCreateStoreSelector"],(function(a,b,c,d,e,f){"use strict";var g=b("AdsMockupProvider").toFluxStore();a=b("adsCreateStoreSelector")([b("AdsMockupDataStore"),g],function(){var a=g.getState();a=a.mockupIDForCreation;return a==null?b("LoadObject").empty():b("AdsMockupDataStore").get(a)},e.id+".adsMockupForCreationSelector");e.exports=a}),null); __d("AdsCFMockupStoreUtils",["AdsCFApplicationUtils","AdsDataAtom","AdsSelectorUtils","adsCFGetApplicationCreationExperienceMode_HACK","adsMockupForCreationSelector"],(function(a,b,c,d,e,f){"use strict";a={getMockup:function(){var a=b("adsCFGetApplicationCreationExperienceMode_HACK")();if(!b("AdsCFApplicationUtils").isQuickCreateMode(a))return null;b("AdsDataAtom").isDispatching()&&b("AdsDataAtom").waitFor(b("AdsSelectorUtils").getStoreDispatchTokens([b("adsMockupForCreationSelector")]));return b("adsMockupForCreationSelector")().getValue()}};e.exports=a}),null); __d("AdsReachFrequencyEnvironment",[],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(){__p&&__p();function a(){this.$1="pe"}var b=a.prototype;b.get=function(){return this.$1};b.isAdsInterfaces=function(){return this.$1==="cf"||this.$1==="pe"};b.isPlanner=function(){return this.$1==="planner"};b.set=function(a){this.$1=a};return a}();e.exports=new a()}),null); __d("adsCFCampaignGroupRecordSelector",["invariant","AdsCFCampaignGroupRecordProvider","AdsCFActiveCampaignGroupIDProvider","AdsStoreUtils","adsCreateSelector"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=b("AdsCFCampaignGroupRecordProvider").toFluxStore();c=b("AdsCFActiveCampaignGroupIDProvider").toFluxSelector();d=b("adsCreateSelector")([b("AdsStoreUtils").toSelector(a),c],function(a,b){b=b.first();b!=null||g(0,13145);var c=a.get(b);c!=null||g(0,13146,b,a.keySeq().toJSON());c.hasValue()===!0||g(0,13144,b);return c.getValueEnforcing()},{name:e.id});e.exports=d}),null); __d("adsCFSelectedObjectiveSelector",["AdsAPICampaignGroupRecordUtils","adsCFCampaignGroupRecordSelector","adsCreateSelector"],(function(a,b,c,d,e,f){"use strict";a=b("adsCreateSelector")([b("adsCFCampaignGroupRecordSelector")],function(a){return b("AdsAPICampaignGroupRecordUtils").getObjective(a)},{name:e.id});e.exports=a}),null); __d("AdsCFReachFrequencyUtils",["Promise","AdsAccountStore","AdsAPICampaignGroupRecordUtils","AdsAPICampaignPaths","AdsCFApplicationStore","AdsPlannerSkipPlanCreationInterpolate","AdsReachFrequencyEnvironment","Bootloader","adsCampaignGetID","adsCFSelectedObjectiveSelector"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a={maybeInitReachFrequency:function(a,c){__p&&__p();return new(b("Promise"))(function(d,e){__p&&__p();if(b("AdsCFApplicationStore").isImportingPrediction()||!b("AdsAPICampaignGroupRecordUtils").isReachFrequency(a)||!c){d();return}var f=c;b("Bootloader").loadModules(["AdsCFRfInitNewDataAction","AdsReachFrequencyFlowStore","AdsReachFrequencyLoggerStore","AdsReachFrequencyScenarioLoggerStore"],function(c,e,g,h){b("AdsReachFrequencyEnvironment").set("cf");e=b("adsCampaignGetID")(f);g=b("adsCFSelectedObjectiveSelector")();h=b("AdsAccountStore").getSelectedAccount_LEGACY();c.dispatch({accountInfo:h,campaignGroupID:a.id,campaignID:e,objective:g,context:"cf",adsPlannerPlanCreationSpec:b("AdsPlannerSkipPlanCreationInterpolate")},{line:"65",module:"AdsCFReachFrequencyUtils.js"});d()},"AdsCFReachFrequencyUtils")})},deleteNonRFFields:function(a){delete a.external_bid,delete a.daily_budget,delete a.lifetime_budget,delete a.start_time,delete a.end_time,delete a.is_autobid,delete a.bid_info,delete a.bid_type,delete a.optimization_goal,delete a.billing_event},deleteNonRFFieldsForCampaignRecord:function(a){return a.withMutations(function(a){a.deleteIn(b("AdsAPICampaignPaths").EXTERNAL_BID),a.deleteIn(b("AdsAPICampaignPaths").DAILY_BUDGET),a.deleteIn(b("AdsAPICampaignPaths").LIFETIME_BUDGET),a.deleteIn(b("AdsAPICampaignPaths").START_TIME),a.deleteIn(b("AdsAPICampaignPaths").END_TIME),a.deleteIn(b("AdsAPICampaignPaths").IS_AUTOBID),a.deleteIn(b("AdsAPICampaignPaths").BID_INFO.path),a.deleteIn(b("AdsAPICampaignPaths").BID_TYPE),a.deleteIn(b("AdsAPICampaignPaths").OPTIMIZATION_GOAL),a.deleteIn(b("AdsAPICampaignPaths").BILLING_EVENT)})}};e.exports=a}),null); __d("AdsApiScheduleObjectFields",[],(function(a,b,c,d,e,f){"use strict";e.exports={START_MINUTE:"start_minute",END_MINUTE:"end_minute",DAYS:"days",TIMEZONE_TYPE:"timezone_type"}}),null); __d("AdsApiScheduleObjectPaths",["AdsApiScheduleObjectFields","generatePaths"],(function(a,b,c,d,e,f){"use strict";a=[{pathKeys:[],expandsTo:b("AdsApiScheduleObjectFields")}];c=b("generatePaths")(a);e.exports=c}),null); __d("AdsDayPartingInterval",["DateConsts"],(function(a,b,c,d,e,f){"use strict";a=function(a,c){this.start_minute=a*b("DateConsts").MIN_PER_HOUR,this.end_minute=c*b("DateConsts").MIN_PER_HOUR};e.exports=a}),null); __d("DayPartingUtils",["AdsApiScheduleObjectFields","AdsBulkValueUtils","Assert","removeFromArray"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g={DAYS_IN_WEEK:7,HOURS_IN_DAY:24,mergeDays:function(a){__p&&__p();b("Assert").isTrue(a.length===this.DAYS_IN_WEEK);var c=g.createArray(g.DAYS_IN_WEEK,function(){return 0}),d=[];while(!0){var e,f=null,h=0;while(h0){var d=b[a][0];for(var e=1;e0&&e.length<=l)return e;else{e=b("getByPath")(a,["destinationCityInfo","country"])||c||d||"US";return[e]}}function p(a){return{locTargeting:i}}function c(a){if(!o(a))return p(a);var b=a.destinationCityInfo;return b?{countries:[b.country],cities:[{name:b.name,id:b.id}],locTargeting:j,radius:k,radiusIfValid:k}:p(a)}function d(a,b,c){__p&&__p();a||g(0,4042);c=Object.assign({},c);var d=!a.radius&&(Object.prototype.hasOwnProperty.call(a,"latitude")||Object.prototype.hasOwnProperty.call(a,"longitude"));if(Object.prototype.hasOwnProperty.call(a,"address_string")){var e=a.address_string||void 0;e!==c.address_string&&(e?c.address_string=e:delete c.address_string,delete c.key,delete c.name,b&&!b.isFetching&&b.isValid?(c.latitude=b.latitude,c.longitude=b.longitude,d=!0):(delete c.latitude,delete c.longitude))}Object.prototype.hasOwnProperty.call(a,"radius")&&(c.radius=a.radius||0);Object.prototype.hasOwnProperty.call(a,"lastSuggestedRadius")&&(c.lastSuggestedRadius=a.lastSuggestedRadius);Object.prototype.hasOwnProperty.call(a,"distance_unit")&&(c.distance_unit=a.distance_unit);Object.prototype.hasOwnProperty.call(a,"latitude")&&(c.latitude=a.latitude);Object.prototype.hasOwnProperty.call(a,"longitude")&&(c.longitude=a.longitude);Object.prototype.hasOwnProperty.call(a,"name")&&(c.name=a.name);return{newCustomLocation:c,shouldFetchSuggestedRadius:d}}function f(a,c){return b("AdsGraphAPI").get(e.id).search("adradiussuggestion").get({latitude:a.latitude,longitude:a.longitude,distance_unit:c||h.getLocalizedUnit()}).then(function(a){a=a.data[0];return!a||!a.suggested_radius?b("Promise").reject(new Error("Could not fetch suggested radius")):{suggestedRadius:a.suggested_radius,distanceUnit:a.distance_unit}})}function q(a,b,c){if(!a.isValid)return!1;var d=a.address;if(!b||b.address_string!==d&&c!==d)return null;return b.latitude!=null||b.longitude!=null?null:{address_string:d,latitude:a.latitude,longitude:a.longitude}}function r(a,c,d,e){c=t.getDefaultGeoTargetingCountry(c,d,e);d=c&&c.length===1&&c[0];e=d&&b("AdsCountriesConfig").countries[String(d)];return!e||a.indexOf(e)>-1?a:a+" "+e}function s(a,b){var c=b[b.length-1];b=b.filter(function(b){return b>=a})[0];return b||c}var t={fetchSuggestedRadius:f,getDefaultGeoTargeting:c,getDefaultGeoTargetingCountry:a,getFallbackAddressWithCountry:r,processGeoCoordinates:q,processLocalGeoChange:d,roundUpToNearestOption:s};e.exports=t}),null); __d("AdsTargetingDefaultUtils",["AdsCFDestinationUtils","AdsCurrentUser","AdsGeoTargetingUtils","AdsUtils","AdsValidationConsts","LocationConstants","adsTargetingLocationAreLocationSpecEqual","immutable"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("LocationConstants").RadiusInfo;a={getDefaultMinimumAge:function(a,c){c=c||b("AdsValidationConsts").minAge;a=!a||a>b("AdsValidationConsts").maxAge?b("AdsValidationConsts").minAgeDefault:a;return Math.max(a,c)},getDefaultLocation:function(a,c,d){__p&&__p();a=b("AdsCFDestinationUtils").convertAPIDataToFields(a);var e=b("AdsGeoTargetingUtils").getDefaultGeoTargeting(a),f=[];if(a.destinationCityInfo){e={key:a.destinationCityInfo.id,name:a.destinationCityInfo.name,radius:e.radius,distance_unit:g.getLocalizedUnit(),country:a.destinationCityInfo.country,region_id:a.destinationCityInfo.region_id};f.push(e)}e=b("AdsGeoTargetingUtils").getDefaultGeoTargetingCountry(a,c,b("AdsCurrentUser").countryCode);e=f.length?[]:e;a={geoLocations:{countries:e,regions:[],cities:f,zips:[],custom_locations:[],geo_markets:[]},excludedGeoLocations:{},location_types:["home","recent"]};return d?b("AdsUtils").camelCaseToUnderscoreKeys(a):a},mergeNewDefaults:function(a,b,c){return b.mergeWith(function(b,c,d){if(c===void 0)return b;var e=a.get(d);if(b===void 0||h(d,e,b))return c;else return b},c)}};function h(a,c,d){switch(a){case"geo_locations":case"excluded_geo_locations":return d instanceof b("immutable").Iterable&&c instanceof b("immutable").Iterable&&b("adsTargetingLocationAreLocationSpecEqual")(d.toJS(),c.toJS())}return b("immutable").is(c,d)}e.exports=a}),null); __d("AdsSavedAudienceProvider",["Laminar","AdsSavedAudienceProviderPlugin"],(function(a,b,c,d,e,f){"use strict";e.exports=b("Laminar").__createProvider(b("AdsSavedAudienceProviderPlugin"),"AdsSavedAudienceProviderPlugin")}),null); __d("AdsSavedAudienceSavedAudienceBatchLoadErrorDataReducerPlugin",[],(function(a,b,c,d,e,f){"use strict";a={reduce:function(a,b){return a.setMultipleErrors(b.errors)}};e.exports=a}),null); __d("AdsSavedAudienceSavedAudienceBatchCreateErrorDataAction",["Laminar","ifRequired","AdsSavedAudienceSavedAudienceBatchLoadErrorDataReducerPlugin","AdsSavedAudienceProvider"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("ifRequired")("AdsCFAdgroupSavedAudienceSavedAudienceBatchCreateErrorReducerPlugin",function(a){return b("ifRequired")("AdsCFAdgroupDataProvider",function(c){return b("Laminar").__createReducer(a,c,{})})}),b("Laminar").__createReducer(b("AdsSavedAudienceSavedAudienceBatchLoadErrorDataReducerPlugin"),b("AdsSavedAudienceProvider"),{})]},function(){return[]},"SAVED_AUDIENCE.BATCH_CREATE_ERROR");e.exports=a}),null); __d("AdsSavedAudienceSavedAudienceBatchDeleteErrorDataAction",["Laminar","ifRequired","AdsSavedAudienceSavedAudienceBatchLoadErrorDataReducerPlugin","AdsSavedAudienceProvider"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("ifRequired")("AdsCFAdgroupSavedAudienceSavedAudienceBatchDeleteErrorReducerPlugin",function(a){return b("ifRequired")("AdsCFAdgroupDataProvider",function(c){return b("Laminar").__createReducer(a,c,{})})}),b("Laminar").__createReducer(b("AdsSavedAudienceSavedAudienceBatchLoadErrorDataReducerPlugin"),b("AdsSavedAudienceProvider"),{})]},function(){return[]},"SAVED_AUDIENCE.BATCH_DELETE_ERROR");e.exports=a}),null); __d("AdsSavedAudienceSavedAudienceBatchDeletedDataReducerPlugin",[],(function(a,b,c,d,e,f){"use strict";a={reduce:function(a,b){return a.deleteMultipleValueOrError(b.savedAudienceIDs)}};e.exports=a}),null); __d("AdsSavedAudienceSavedAudienceBatchDeletedDataAction",["Laminar","ifRequired","AdsSavedAudienceSavedAudienceBatchDeletedDataReducerPlugin","AdsSavedAudienceProvider"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("ifRequired")("AdsCFAdgroupSavedAudienceSavedAudienceBatchDeletedReducerPlugin",function(a){return b("ifRequired")("AdsCFAdgroupDataProvider",function(c){return b("Laminar").__createReducer(a,c,{})})}),b("Laminar").__createReducer(b("AdsSavedAudienceSavedAudienceBatchDeletedDataReducerPlugin"),b("AdsSavedAudienceProvider"),{})]},function(){return[]},"SAVED_AUDIENCE.BATCH_DELETED");e.exports=a}),null); __d("AdsSavedAudienceSavedAudienceBatchLoadErrorDataAction",["Laminar","ifRequired","AdsSavedAudienceSavedAudienceBatchLoadErrorDataReducerPlugin","AdsSavedAudienceProvider"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("ifRequired")("AdsCFAdgroupSavedAudienceSavedAudienceBatchLoadErrorReducerPlugin",function(a){return b("ifRequired")("AdsCFAdgroupDataProvider",function(c){return b("Laminar").__createReducer(a,c,{})})}),b("Laminar").__createReducer(b("AdsSavedAudienceSavedAudienceBatchLoadErrorDataReducerPlugin"),b("AdsSavedAudienceProvider"),{})]},function(){return[]},"SAVED_AUDIENCE.BATCH_LOAD_ERROR");e.exports=a}),null); __d("AdsSavedAudienceSavedAudienceBatchLoadedDataReducerPlugin",[],(function(a,b,c,d,e,f){"use strict";a={reduce:function(a,b){return a.setMultipleValueOrError(b.savedAudiences)}};e.exports=a}),null); __d("AdsSavedAudienceSavedAudienceBatchLoadedDataAction",["Laminar","ifRequired","AdsSavedAudienceSavedAudienceBatchLoadedDataReducerPlugin","AdsSavedAudienceProvider"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("ifRequired")("AdsCFAdgroupSavedAudienceSavedAudienceBatchLoadedReducerPlugin",function(a){return b("ifRequired")("AdsCFAdgroupDataProvider",function(c){return b("Laminar").__createReducer(a,c,{})})}),b("Laminar").__createReducer(b("AdsSavedAudienceSavedAudienceBatchLoadedDataReducerPlugin"),b("AdsSavedAudienceProvider"),{})]},function(){return[]},"SAVED_AUDIENCE.BATCH_LOADED");e.exports=a}),null); __d("AdsSavedAudienceSavedAudienceBatchUpdateErrorDataReducerPlugin",[],(function(a,b,c,d,e,f){"use strict";a={reduce:function(a,b){b=Array.from(b.errors.keys());var c=a.getAll(b);return a.withMutations(function(a){c.forEach(function(b,c){a.set(c,b.done())})})}};e.exports=a}),null); __d("AdsSavedAudienceSavedAudienceBatchUpdateErrorDataAction",["Laminar","ifRequired","AdsSavedAudienceSavedAudienceBatchUpdateErrorDataReducerPlugin","AdsSavedAudienceProvider"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("ifRequired")("AdsCFAdgroupSavedAudienceSavedAudienceBatchUpdateErrorReducerPlugin",function(a){return b("ifRequired")("AdsCFAdgroupDataProvider",function(c){return b("Laminar").__createReducer(a,c,{})})}),b("Laminar").__createReducer(b("AdsSavedAudienceSavedAudienceBatchUpdateErrorDataReducerPlugin"),b("AdsSavedAudienceProvider"),{})]},function(){return[]},"SAVED_AUDIENCE.BATCH_UPDATE_ERROR");e.exports=a}),null); __d("AdsSavedAudienceSavedAudienceCreateBatchDataReducerPlugin",[],(function(a,b,c,d,e,f){"use strict";a={reduce:function(a,b){return a.setLoading(b.savedAudiences.map(function(a){return a.tempID}))}};e.exports=a}),null); __d("AdsSavedAudienceSavedAudienceCreateBatchDataAction",["Laminar","ifRequired","AdsSavedAudienceSavedAudienceCreateBatchDataReducerPlugin","AdsSavedAudienceProvider"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("ifRequired")("AdsCFAdgroupSavedAudienceSavedAudienceCreateBatchReducerPlugin",function(a){return b("ifRequired")("AdsCFAdgroupDataProvider",function(c){return b("Laminar").__createReducer(a,c,{})})}),b("Laminar").__createReducer(b("AdsSavedAudienceSavedAudienceCreateBatchDataReducerPlugin"),b("AdsSavedAudienceProvider"),{})]},function(){return[]},"SAVED_AUDIENCE.CREATE_BATCH");e.exports=a}),null); __d("AdsSavedAudienceSavedAudienceDeleteBatchDataReducerPlugin",[],(function(a,b,c,d,e,f){"use strict";a={reduce:function(a,b){return a.setDeleting(b.savedAudienceIDs)}};e.exports=a}),null); __d("AdsSavedAudienceSavedAudienceDeleteBatchDataAction",["Laminar","ifRequired","AdsSavedAudienceSavedAudienceDeleteBatchDataReducerPlugin","AdsSavedAudienceProvider"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("ifRequired")("AdsCFAdgroupSavedAudienceSavedAudienceDeleteBatchReducerPlugin",function(a){return b("ifRequired")("AdsCFAdgroupDataProvider",function(c){return b("Laminar").__createReducer(a,c,{})})}),b("Laminar").__createReducer(b("AdsSavedAudienceSavedAudienceDeleteBatchDataReducerPlugin"),b("AdsSavedAudienceProvider"),{})]},function(){return[]},"SAVED_AUDIENCE.DELETE_BATCH");e.exports=a}),null); __d("AdsSavedAudienceSavedAudienceUpdateBatchDataReducerPlugin",[],(function(a,b,c,d,e,f){"use strict";a={reduce:function(a,b){return a.setUpdating(b.savedAudiences.map(function(a){return a.id}))}};e.exports=a}),null); __d("AdsSavedAudienceSavedAudienceUpdateBatchDataAction",["Laminar","ifRequired","AdsSavedAudienceSavedAudienceUpdateBatchDataReducerPlugin","AdsSavedAudienceProvider"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("ifRequired")("AdsCFAdgroupSavedAudienceSavedAudienceUpdateBatchReducerPlugin",function(a){return b("ifRequired")("AdsCFAdgroupDataProvider",function(c){return b("Laminar").__createReducer(a,c,{})})}),b("Laminar").__createReducer(b("AdsSavedAudienceSavedAudienceUpdateBatchDataReducerPlugin"),b("AdsSavedAudienceProvider"),{})]},function(){return[]},"SAVED_AUDIENCE.UPDATE_BATCH");e.exports=a}),null); __d("AdsSavedAudienceSavedAudienceBatchCreatedDataAction",["Laminar","ifRequired"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("ifRequired")("AdsCFAdgroupSavedAudienceSavedAudienceBatchCreatedReducerPlugin",function(a){return b("ifRequired")("AdsCFAdgroupDataProvider",function(c){return b("Laminar").__createReducer(a,c,{})})})]},function(){return[]},"SAVED_AUDIENCE.BATCH_CREATED");e.exports=a}),null); __d("AdsSavedAudienceSavedAudienceBatchUpdatedDataAction",["Laminar","ifRequired"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("ifRequired")("AdsCFAdgroupSavedAudienceSavedAudienceBatchUpdatedReducerPlugin",function(a){return b("ifRequired")("AdsCFAdgroupDataProvider",function(c){return b("Laminar").__createReducer(a,c,{})})})]},function(){return[]},"SAVED_AUDIENCE.BATCH_UPDATED");e.exports=a}),null); __d("AdsSavedAudienceActions",["AdsSavedAudienceDataManager","AdsSavedAudienceSavedAudienceBatchCreatedDataAction","AdsSavedAudienceSavedAudienceBatchUpdatedDataAction","AdsSavedAudienceSavedAudienceCreateBatchDataAction","AdsSavedAudienceSavedAudienceDeleteBatchDataAction","AdsSavedAudienceSavedAudienceUpdateBatchDataAction"],(function(a,b,c,d,e,f){"use strict";__p&&__p();e.exports={create:function(a){b("AdsSavedAudienceSavedAudienceCreateBatchDataAction").dispatch({savedAudiences:a},{line:"28",module:"AdsSavedAudienceActions.js"}),a.forEach(function(a){return b("AdsSavedAudienceDataManager").create(a)})},created:function(a){b("AdsSavedAudienceSavedAudienceBatchCreatedDataAction").dispatch({savedAudiences:a},{line:"35",module:"AdsSavedAudienceActions.js"}),b("AdsSavedAudienceDataManager").loadAll(Array.from(a.values(),function(a){return a.id}))},"delete":function(a){b("AdsSavedAudienceSavedAudienceDeleteBatchDataAction").dispatch({savedAudienceIDs:a},{line:"46",module:"AdsSavedAudienceActions.js"}),a.forEach(function(a){b("AdsSavedAudienceDataManager")["delete"](a)})},update:function(a){b("AdsSavedAudienceSavedAudienceUpdateBatchDataAction").dispatch({savedAudiences:a},{line:"61",module:"AdsSavedAudienceActions.js"}),a.forEach(function(a){return b("AdsSavedAudienceDataManager").update(a)})},updated:function(a){b("AdsSavedAudienceSavedAudienceBatchUpdatedDataAction").dispatch({savedAudiences:a},{line:"68",module:"AdsSavedAudienceActions.js"}),b("AdsSavedAudienceDataManager").loadAll(Array.from(a.values(),function(a){return a.id}))}}}),null); __d("AdsTargetingSavedAudienceDataLoader",["Promise","AdsGraphAPI","AdsProductAudienceSpecsUtils","AdsSavedAudienceSavedAudienceBatchCreatedDataAction","GraphAPIFieldUtils","GraphSort","gkx","isValidID"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("Promise").resolve(new Map()),h=["id","name","approximate_count","is_sharing_agreement_needed","sentence_lines","targeting","permission_for_actions","targeting_status",b("GraphAPIFieldUtils").getFieldWithSubfields("adsets",["id","name","end_time","start_time","delivery_info"])];a={loadSavedAudiencesForAccount:function(a){return b("AdsGraphAPI").get(e.id).adaccount(a).edge("saved_audiences").batched().get({fields:["id"]})},searchSavedAudiencesForAccount:function(a,c){return b("AdsGraphAPI").get(e.id).adaccount(a).edge("saved_audiences").get({fields:["id","name"],filtering:c===""?null:[{field:"name",operator:"CONTAIN",value:c}],sort:"time_created"+b("GraphSort").DESC})},loadSavedAudienceByID:function(a){return!b("isValidID")(a)?g:b("AdsGraphAPI").get(e.id).object("saved_audience",a).batched().get({fields:h})},loadSavedAudiencesByID:function(a){__p&&__p();var c=a.filter(b("isValidID")),d=b("gkx")("930762");if(d){d=[];var f=5;for(var g=0;gg)return b("adsCampaignAppendEllipsis")(b("intlList")(c,b("intlList").CONJUNCTIONS.NONE));c.push(f);d+=f.length}return c.length>0?b("intlList")(c,b("intlList").CONJUNCTIONS.NONE):b("adsCampaignAppendEllipsis")(a[0].substring(0,g))}e.exports=a}),null); __d("adsCampaignGenerateNameFromCampaign",["fbt","AdsTargetingConstants","AdsValidationConsts","adsCampaignAppendEllipsis","adsCampaignGetLimitedString"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();function h(a){switch(a){case b("AdsTargetingConstants").GENDERS.Men:return g._("M");case b("AdsTargetingConstants").GENDERS.Women:return g._("W")}return null}function i(a){__p&&__p();a=a.split(/(?:,| )+/);a.length&&!isNaN(+a[0])&&(a=a.slice(1));if(!a.length)return"";else if(a.length===1)return a[0];else{var c=g._("{address_part_one} {address_part_two}",[g._param("address_part_one",a[0]),g._param("address_part_two",a[1])]);if(a.length===2)return c;else return b("adsCampaignAppendEllipsis")(c)}}function a(a){__p&&__p();var c=a.targeting.countries,d=a.targeting.geo_locations,e=a.targeting.genders;e=e&&e.first();var f=a.targeting.age_min;a=a.targeting.age_max;var g=[];if(d){var j=new Set(),k=[],l=[],m=[],n=d.get("countries"),o=d.get("zips"),p=d.get("cities"),q=d.get("regions");n&&n.forEach(function(a){return j.add(a)});o&&o.forEach(function(a){a.get("name")&&m.push(a.get("name")),a.get("country")&&j.add(a.get("country"))});p&&p.forEach(function(a){a.get("name")&&k.push(a.get("name")),a.get("country")&&j.add(a.get("country"))});q&&q.forEach(function(a){a.get("name")&&l.push(a.get("name")),a.get("country")&&j.add(a.get("country"))});j.size===1&&m.length>0?g.push(b("adsCampaignGetLimitedString")(m)):j.size===1&&k.length>0?g.push(b("adsCampaignGetLimitedString")(k)):j.size===1&&l.length>0?g.push(b("adsCampaignGetLimitedString")(l)):j.size>0&&g.push(b("adsCampaignGetLimitedString")(Array.from(j.values())))}else c&&c.size>0&&g.push(b("adsCampaignGetLimitedString")(c));n=h(e);n!=null&&g.push(n);f!=null&&(a!=null&&a-1}e.exports=a}),null); __d("AdsCFDefaultCampaignPlugin",["AdsAdgroupFetchAfcPromotableObjectsSuccessDataActionFlux","AdsAPICampaignPaths","AdsAPICampaignRecord","AdsAPICampaignRecordUtils","AdsAPIObjectives","AdsBuyingTypes","AdsCampaignBudgetPluginResolver","AdsCFApplicationUtils","AdsCFConstants","AdsCFCreativeMockupUtils","AdsCFMockupStoreUtils","AdsCFReachFrequencyUtils","AdsLoadStateUtils_LEGACY","AdsOptimizationUtils","AdsPaymentsCheckoutUtils","AdsPlacementTargetingFields","AdsPlacementUtils","AdsPromotedObjectTypes","AdsQEStore","AdsRunStatus","AdsTargetingDefaultUtils","URIInitDataUtil","adsCampaignGenerateNameFromCampaign","adsCampaignGetCheckoutDefaultEndTime","adsCampaignGetDefaultDailyBudget","adsCampaignGetDefaultEndDate","adsCampaignGetDefaultStartDate","adsCampaignGetISODateTimeString","adsCampaignGetScheduleLengthsDays","adsCFGetApplicationCreationExperienceMode_HACK","adsCFGetSavedAudience_HACK","adsDeliveryTranslateOldAttributionWindowSpec","adsPivotsPluginMustImplementFunction","adsTargetingGetDefaultTargetingSpec","adsTargetingGetIsEmbargoedCountry","filterObject"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("AdsAPICampaignRecord").getSpec().targeting,h=b("AdsCFConstants").CampaignScheduleModes;a={type:"campaign",key:"default",pivots:{},handleSetOptimizationGoal:function(a){return a},mergeStaticDefaults:function(a,b){return this.__mergeObjectiveSpecificStaticDefaults(this._mergeCommonStaticDefaults(a,b),b)},_mergeCommonStaticDefaults:function(a,c){__p&&__p();var d=c.account,e=c.accountAPIState,f=c.buyingType,g=c.campaignGroupDailyBudget,h=c.campaignGroupLifetimeBudget,i=c.campaignGroupPromotedObject,j=c.destSource,k=c.objective;c=c.payloadSource;var l=d.timezone_offset_hours_utc;l=this._getDefaultStartEndTimeStrings(d,l);var m=l.defaultStartTimeString;l=l.defaultEndTimeString;var n=b("AdsOptimizationUtils").getDefaultAttributionWindowDays(),o=b("AdsAPICampaignRecordUtils").getPromotedObjectType(k,a);o=this._getTargetingDefaults(f,d,k,o,i&&i.page_id,j,c);i=this._getSavedAudienceAndIDFromURI();j=i.savedAudienceID;c=i.savedAudience;var p,q,r;!g&&!h&&(p=this._getDefaultDailyBudget(a,k,d.currency,e.suggested_campaign_budget),q=0,r=["standard"]);a=a.mergeDeepWith(function(a,b){return b!=null?b:a},new(b("AdsAPICampaignRecord"))((i={},i.status=b("AdsRunStatus").ACTIVE,i.budget_remaining=p,i.daily_budget=p,i.end_time=l,i.lifetime_budget=q,i.pacing_type=r,i.saved_audience=c,i.saved_audience_id=j,i.start_time=m,i.targeting=o,i.attribution_spec=b("adsDeliveryTranslateOldAttributionWindowSpec")({attribution_window_days:n}),i)));g=b("adsCFGetApplicationCreationExperienceMode_HACK")();h=b("AdsCFApplicationUtils").isQuickCreateMode(g);k=h?"":b("adsCampaignGenerateNameFromCampaign")(a);a=a.setIn(b("AdsAPICampaignPaths").NAME,k);this._shouldSetRecurringBudgetSemanticsField(a)&&(a=a.setIn(b("AdsAPICampaignPaths").RECURRING_BUDGET_SEMANTICS,!0));return f===b("AdsBuyingTypes").RESERVED?b("AdsCFReachFrequencyUtils").deleteNonRFFieldsForCampaignRecord(a):a},__mergeObjectiveSpecificStaticDefaults:function(a,b){return a},_getTargetingDefaultNoPlacements:function(a){var c=this._getURISavedAudience();if(c)return b("AdsLoadStateUtils_LEGACY").isLoaded(c)?c.targeting:{};c=this._getURITargetingNoPlacements();if(c)return c;c=a.business_country_code;b("adsTargetingGetIsEmbargoedCountry")(c)&&(c=null);return b("adsTargetingGetDefaultTargetingSpec")(c)},_getTargetingDefaults:function(a,c,d,e,f,g,h){g=b("AdsPlacementUtils").getAutomaticCampaignPlacement({objective:d,buyingType:a,capabilities:c.capabilities,promotedObjectType:e,promotedPageID:f});h=b("AdsCFMockupStoreUtils").getMockup();d=h!=null?b("AdsCFCreativeMockupUtils").getDefaultPlacementsForMockup(h):null;return babelHelpers["extends"]({},this._getTargetingDefaultNoPlacements(c),g,d)},_getDefaultStartEndTimeStrings:function(a,c){var d=b("adsCampaignGetDefaultStartDate")(),e=b("adsCampaignGetISODateTimeString")(d,c),f,g=this._getDefaultScheduleMode(a);if(g===h.SCHEDULED){g=this.pivots.objective||b("AdsAPIObjectives").NONE;var i=this.pivots.promotedObjectType||b("AdsPromotedObjectTypes").NONE;f=b("adsCampaignGetISODateTimeString")(b("adsCampaignGetDefaultEndDate")(d,null,b("adsCampaignGetScheduleLengthsDays")(),b("AdsCampaignBudgetPluginResolver").resolve({objective:g,promotedObjectType:i})),c)}d=b("AdsPaymentsCheckoutUtils").getAccountIsInCheckout(a);d&&!f&&(f=b("adsCampaignGetCheckoutDefaultEndTime")(a));return{defaultStartTimeString:e,defaultEndTimeString:f}},_getDefaultScheduleMode:function(a){a=b("AdsQEStore").getForAccount_LEGACY("adg_broad_scheduling_adaccount",a.account_id);a=a&&a.isDone()&&a.hasValue()?a.getValueEnforcing().getParamBool("default_scheduled"):!1;return a?h.SCHEDULED:h.CONTINUOUSLY},_shouldSetRecurringBudgetSemanticsField:function(a){return!1},_getDefaultDailyBudget:function(a,c,d){c=b("adsCampaignGetDefaultDailyBudget")(d,b("AdsCampaignBudgetPluginResolver").resolve({objective:this.pivots.objective,promotedObjectType:b("AdsAPICampaignRecordUtils").getPromotedObjectType(this.pivots.objective,a)}));return c},__mergeTargetingWithNewDefault:function(a,c,d){c=new g(c);d=new g(this._getTargetingDefaultNoPlacements(d));d=b("AdsTargetingDefaultUtils").mergeNewDefaults(d,a.targeting,c);return a.setIn(b("AdsAPICampaignPaths").TARGETING.path,d)},getAsyncDefaultSpecGenerationActions:function(){return new Set([b("AdsAdgroupFetchAfcPromotableObjectsSuccessDataActionFlux").actionType])},isAsyncDefaultingEnabled:function(){return!1},calculateDependencies:function(a){return b("adsPivotsPluginMustImplementFunction")(this,"calculateDependencies")},mergeDependenciesToCampaign:function(a,c){return b("adsPivotsPluginMustImplementFunction")(this,"mergeDependenciesToCampaign")},shouldLockAdPage:function(a){return!1},_getSavedAudienceAndIDFromURI:function(){var a,c,d=this._getURISavedAudience();d&&(b("AdsLoadStateUtils_LEGACY").isError(d)||(c=b("URIInitDataUtil").getDefaultSavedAudience()),b("AdsLoadStateUtils_LEGACY").isLoaded(d)&&(a={id:d.id,name:d.name}));return{savedAudienceID:c,savedAudience:a}},_getURISavedAudience:function(){var a=b("URIInitDataUtil").getDefaultSavedAudience();return a?b("adsCFGetSavedAudience_HACK")(a):null},_getURITargetingNoPlacements:function(){var a=b("URIInitDataUtil").getDefaultTargeting();if(a){var c=new Set(b("AdsPlacementTargetingFields"));a=b("filterObject")(a,function(a,b){return!c.has(b)})}return a},__doesCampaignHaveSavedAudience:function(a){return!!a.saved_audience_id}};e.exports=a}),null); __d("AdsCFAppInstallsCanvasAppCampaignPlugin",["AdsAPIObjectives","AdsCFAppCampaignPluginCommon","AdsCFDefaultCampaignPlugin","AdsPromotedObjectTypes"],(function(a,b,c,d,e,f){"use strict";a=babelHelpers["extends"]({},b("AdsCFDefaultCampaignPlugin"),b("AdsCFAppCampaignPluginCommon"),{type:"campaign",key:"app-installs/canvas-app",pivots:{objective:b("AdsAPIObjectives").APP_INSTALLS,promotedObjectType:b("AdsPromotedObjectTypes").CANVAS_APP}});e.exports=a}),null); __d("AdsValidOptimizationSubEventsLoadedActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"ADS_VALID_OPTIMIZATION_SUB_EVENTS_LOADED"}}),null); __d("AdsValidOptimizationSubEventsDataProvider",["Laminar","AdsValidOptimizationSubEventsDataProviderPlugin"],(function(a,b,c,d,e,f){"use strict";e.exports=b("Laminar").__createProvider(b("AdsValidOptimizationSubEventsDataProviderPlugin"),"AdsValidOptimizationSubEventsDataProviderPlugin")}),null); __d("AdsValidOptimizationSubEventsLoadedReducerPlugin",[],(function(a,b,c,d,e,f){"use strict";a={reduce:function(a,b){return a.merge(b.valid_optimization_sub_events)}};e.exports=a}),null); __d("AdsValidOptimizationSubEventsLoadedAction",["Laminar","AdsValidOptimizationSubEventsLoadedReducerPlugin","AdsValidOptimizationSubEventsDataProvider"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("Laminar").__createReducer(b("AdsValidOptimizationSubEventsLoadedReducerPlugin"),b("AdsValidOptimizationSubEventsDataProvider"),{})]},function(){return[]},"ADS_VALID_OPTIMIZATION_SUB_EVENTS_LOADED");e.exports=a}),null); __d("XAdsValidOptimizationSubEventsPerObjectiveAsyncController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/ads/delivery/valid_optimization_sub_events_per_objective/",{act:{type:"Int",required:!0}})}),null); __d("AdsValidOptimizationSubEventsDataProviderPlugin",["AdsValidOptimizationSubEventsLoadedAction","AsyncRequest","LoadObjectMap","XAdsValidOptimizationSubEventsPerObjectiveAsyncController","mapSet","promiseDone","promiseLoadObjectsFromKeys"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function g(a,c){a(function(a){return a.merge(b("mapSet")(c.accountIDs,function(b){return[b,a.get(b).loading()]}))})}a={initialState:function(a){return b("LoadObjectMap").create(function(c){g(a,{accountIDs:c}),b("promiseDone")(b("promiseLoadObjectsFromKeys")(c,h),function(a){b("AdsValidOptimizationSubEventsLoadedAction").dispatch({valid_optimization_sub_events:a},{line:"49",module:"AdsValidOptimizationSubEventsDataProviderPlugin.js"})})})}};function h(a){a=b("XAdsValidOptimizationSubEventsPerObjectiveAsyncController").getURIBuilder().setInt("act",a).getURI();return new(b("AsyncRequest"))().setURI(a).setMethod("GET").setReadOnly(!0).exec().then(function(a){return a.payload})}e.exports=a}),null); __d("AdsValidOptimizationSubEventsSelector",["AdsAccountStore","AdsValidOptimizationSubEventsDataProvider","adsCreateSelector"],(function(a,b,c,d,e,f){"use strict";a=b("adsCreateSelector")([b("AdsValidOptimizationSubEventsDataProvider").toFluxSelector(),b("AdsAccountStore").getSelectedAccountID],function(a,b){if(b==null)return null;a=a.get(b).getValue();return a},{name:e.id+".validOptimizationSubEventsSelector"});e.exports=a}),null); __d("TripConsiderationUtils",["AdsAPIObjectives","AdsBuyingTypes"],(function(a,b,c,d,e,f){"use strict";var g=new Set([b("AdsAPIObjectives").APP_INSTALLS,b("AdsAPIObjectives").EVENT_RESPONSES,b("AdsAPIObjectives").LEAD_GENERATION,b("AdsAPIObjectives").LINK_CLICKS,b("AdsAPIObjectives").MESSAGES,b("AdsAPIObjectives").PAGE_LIKES,b("AdsAPIObjectives").POST_ENGAGEMENT,b("AdsAPIObjectives").VIDEO_VIEWS,b("AdsAPIObjectives").CONVERSIONS]),h={maybeDefaultTripConsideration:function(a,c,d,e){return g.has(e)&&d!=null&&a===b("AdsBuyingTypes").AUCTION?h.defaultTripConsideration(c,d,e):c},defaultTripConsideration:function(a,b,c){b=b[c]||[];return b.includes("TRIP_CONSIDERATION")?a.set("optimization_sub_event","TRIP_CONSIDERATION"):a}};e.exports=h}),null); __d("AdsCFAppInstallsMobileAppCampaignPlugin",["AdsAPICampaignGroupRecordUtils","AdsAPICampaignPaths","AdsAPIObjectives","AdsAPIOptimizationGoals","AdsCFAppCampaignPluginCommon","AdsCFDefaultCampaignPlugin","AdsPromotedObjectTypes","AdsValidOptimizationSubEventsLoadedActionFlux","AdsValidOptimizationSubEventsSelector","TripConsiderationUtils","nullthrows"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=babelHelpers["extends"]({},b("AdsCFDefaultCampaignPlugin"),b("AdsCFAppCampaignPluginCommon"),{type:"campaign",key:"app-installs/app",pivots:{objective:b("AdsAPIObjectives").APP_INSTALLS,promotedObjectType:b("AdsPromotedObjectTypes").MOBILE_APP},getAsyncDefaultSpecGenerationActions:function(){return new Set([b("AdsValidOptimizationSubEventsLoadedActionFlux").actionType])},isAsyncDefaultingEnabled:function(){return!0},calculateDependencies:function(a,c){a=b("AdsValidOptimizationSubEventsSelector")();c=b("AdsAPICampaignGroupRecordUtils").getBuyingType(c);return{buyingType:c,validOptimizationSubEventsByObjective:a}},mergeDependenciesToCampaign:function(a,c){var d=c.buyingType;c=c.validOptimizationSubEventsByObjective;return b("TripConsiderationUtils").maybeDefaultTripConsideration(d,a,c,b("nullthrows")(this.pivots.objective))},handleSetOptimizationGoal:function(a){var c=a.optimization_goal;if(c===b("AdsAPIOptimizationGoals").VALUE)return a.setIn(b("AdsAPICampaignPaths").PROMOTED_OBJECT.CUSTOM_EVENT_TYPE,"PURCHASE");else return a.deleteIn(b("AdsAPICampaignPaths").PROMOTED_OBJECT.CUSTOM_EVENT_TYPE)}});e.exports=a}),null); __d("AdsCFBrandAwarenessCampaignPlugin",["AdsAPIObjectives","AdsCFDefaultCampaignPlugin"],(function(a,b,c,d,e,f){"use strict";a=babelHelpers["extends"]({},b("AdsCFDefaultCampaignPlugin"),{type:"campaign",key:"brand-awareness",pivots:{objective:b("AdsAPIObjectives").BRAND_AWARENESS}});e.exports=a}),null); __d("AdsCFConversionsAppCampaignPlugin",["AdsAPIObjectives","AdsCFAppCampaignPluginCommon","AdsCFDefaultCampaignPlugin","AdsPromotedObjectTypes"],(function(a,b,c,d,e,f){"use strict";a=babelHelpers["extends"]({},b("AdsCFDefaultCampaignPlugin"),b("AdsCFAppCampaignPluginCommon"),{type:"campaign",key:"conversions/app",pivots:{objective:b("AdsAPIObjectives").CONVERSIONS,promotedObjectType:b("AdsPromotedObjectTypes").MOBILE_APP}});e.exports=a}),null); __d("AdsBootloaderUtil",[],(function(a,b,c,d,e,f){"use strict";a={buildLazyStoreGetter:function(a){var b=null;a(function(a){b=a});return function(a,c){return b!=null?a(b):c}}};e.exports=a}),null); __d("AdsCampaignCreationTips",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({VALUE_DEFAULTING_FOR_APP_INSTALL:"value_defaulting_for_app_install",VALUE_DEFAULTING_FOR_PRODUCT_CATALOG_SALES:"value_defaulting_for_product_catalog_sales",LANDING_PAGE_VIEWS_OPTIMIZATION:"landing_page_views_optimization",LANDING_PAGE_VIEWS_OPTIMIZATION_WITH_CONFIDENCE:"landing_page_views_optimization_with_confidence",REACH_DEFAULTING_FOR_POST_ENGAGEMENT:"reach_defaulting_for_post_engagement",REACH_DEFAULTING_FOR_TRAFFIC:"reach_defaulting_for_traffic"})}),null); __d("AdsCampaignEditFlowTips",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({PCS_LINK_CLICK_TO_CONVERSION:"pcs_link_click_to_conversion",PCS_CONVERSION_TO_ROAS:"pcs_conversion_to_roas",LANDING_PAGE_VIEWS_OPTIMIZATION:"landing_page_views_optimization",LANDING_PAGE_VIEWS_OPTIMIZATION_WITH_CONFIDENCE:"landing_page_views_optimization_with_confidence",TRAFFIC_LINK_CLICKS_TO_CONVERSIONS:"traffic_link_clicks_to_conversions",PAGE_POST_ENGAGEMENT:"page_post_engagement",POST_ENGAGEMENT_TO_MESSAGE:"post_engagement_to_message",MESSAGES_MESSENGER_DESTINATION:"messages_messenger_destination",BULK_ADOPTION_CAMPAIGN_LPV:"bulk_adoption_campaign_lpv",BULK_ADOPTION_CAMPAIGN_ROAS:"bulk_adoption_campaign_roas"})}),null); __d("AdsOptimizationMutationUtils",["invariant","AccountAttributionEvent","AdsAPIBidConstraints","AdsAPIBidStrategies","AdsAPIBillingEvents","AdsAPICampaignGroupRecordUtils","AdsAPICampaignPaths","AdsAPICampaignRecordUtils","AdsAPIObjectives","AdsAPIOptimizationGoals","AdsAudienceDirectConfig","AdsBidConstraintsUtils","AdsBidStrategyLoggingUtils","AdsBuyingTypes","AdsCampaignCreationTips","AdsCampaignEditFlowTips","AdsConversionWindowUtils","AdsCostStrategyUtils","AdsOptimizationUtils","AdsPromotedObjectTypes","AdsUEditorHostIDs","DayPartingUtils","adsBillingEventGetDefaultDEPRECATED","adsCampaignIsCampaignGroupBudget","immutable","nullthrows"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h=[b("AdsAPICampaignPaths").ATTRIBUTION_SPEC,b("AdsAPICampaignPaths").BID_AMOUNT,b("AdsAPICampaignPaths").BID_CONSTRAINTS,b("AdsAPICampaignPaths").BID_STRATEGY,b("AdsAPICampaignPaths").BILLING_EVENT,b("AdsAPICampaignPaths").FREQUENCY_CONTROL_SPECS,b("AdsAPICampaignPaths").FULL_FUNNEL_EXPLORATION_MODE,b("AdsAPICampaignPaths").IS_AUTOBID,b("AdsAPICampaignPaths").IS_AVERAGE_PRICE_PACING,b("AdsAPICampaignPaths").OPTIMIZATION_GOAL,b("AdsAPICampaignPaths").OPTIMIZATION_SUB_EVENT],i=b("immutable").Set([b("AdsAPIObjectives").APP_INSTALLS,b("AdsAPIObjectives").MOBILE_APP_INSTALLS,b("AdsAPIObjectives").PRODUCT_CATALOG_SALES]);function a(a){return a.withMutations(function(a){h.forEach(function(b){return a.deleteIn(b)});var c=a.pacing_type;c!=null&&(c.includes("day_parting")?a.setIn(b("AdsAPICampaignPaths").PACING_TYPE,b("immutable").List(["day_parting"])):a.setIn(b("AdsAPICampaignPaths").PACING_TYPE,b("immutable").List(["standard"])))})}function c(a,c,d,e,f){__p&&__p();var g,h=f.campaignGroup,i=f.prefilledOptimizationGoal,t=f.recommendedOptimizationType,u=(t==null?void 0:t.optimizationGoal)||i||r(c,d,f),v=l(h,c,e,u,a),w=o(h,c,e,u,v),x=m(a,h,c,d,w,u,v),y=n(c);a.loadState;var z=babelHelpers.objectWithoutPropertiesLoose(a,["loadState"]);x=(g={},g.billing_event=v,g.bid_amount=x,g.bid_constraints=y,g.is_autobid=w,g.optimization_goal=u,g.frequency_control_specs=d.getDefaultFrequencyControlSpecs(u,z),g.pacing_type=q(h,c,"standard",f),g);y={};f=b("adsCampaignIsCampaignGroupBudget")(c);g=null;if(!s(h)){f=b("AdsOptimizationUtils").canUseAveragePricePacing(d,u,v,f,z);f?(g=b("AdsOptimizationUtils").getIsAveragePricePacingValue(!!w),y.is_average_price_pacing=g):(y.is_average_price_pacing=!1,g=!1);z=h?h.buying_type:null;f=z===b("AdsBuyingTypes").RESERVED;if(!f){z=p(a,c,e,u,d,v);f=b("AdsCostStrategyUtils").getBidStrategyByLegacyFields(w,g);z!==f&&b("AdsBidStrategyLoggingUtils").logInconsistentBidStrategy(f,z,b("AdsCostStrategyUtils").BID_STRATEGY_EVENT_SOURCE.OPTIMIZATION_MUTATION);y.bid_strategy=f}}d=b("AdsAPICampaignRecordUtils").getPromotedObjectType(e,c);v=h?h.bid_strategy:b("AdsAPIBidStrategies").NONE;g=k(a,e,d,u,(w=y.bid_strategy)!=null?w:v);Object.assign(y,g);u===b("AdsAPIOptimizationGoals").OFFSITE_CONVERSIONS&&e===b("AdsAPIObjectives").CONVERSIONS&&(y.full_funnel_exploration_mode="NONE_EXPLORATION");z=j(e,c,u,i,t);z&&(y.metrics_metadata=z);if(h&&v===b("AdsAPIBidStrategies").LOWEST_COST_WITH_MIN_ROAS){delete x.bid_amount;a=b("immutable").Map((f={},f[b("AdsAPIBidConstraints").ROAS_AVERAGE_FLOOR]=b("AdsBidConstraintsUtils").getDefaultROASAverageFloor(),f));x.bid_constraints=a;x.optimization_goal=b("AdsAPIOptimizationGoals").VALUE;x.billing_event=b("AdsAPIBillingEvents").IMPRESSIONS}return c.merge(Object.assign(x,y))}function j(a,c,d,e,f){__p&&__p();if(!e&&d===b("AdsAPIOptimizationGoals").VALUE&&c.optimization_goal!==b("AdsAPIOptimizationGoals").VALUE&&i.has(a)){return e={},e.creation_flow_tips=[a===b("AdsAPIObjectives").PRODUCT_CATALOG_SALES?"value_defaulting_for_product_catalog_sales":"value_defaulting_for_app_install"],e}if(f)if(f.hostID===b("AdsUEditorHostIDs").CREATION){if(Object.values(b("AdsCampaignCreationTips")).includes(f.optimizationType)){return d={},d.creation_flow_tips=[f.optimizationType],d}}else if(f.hostID===b("AdsUEditorHostIDs").EDITING&&Object.values(b("AdsCampaignEditFlowTips")).includes(f.optimizationType)){return c={},c.edit_flow_tips=[f.optimizationType],c}return null}function k(a,c,d,e,f){var g={};a.loadState;a=babelHelpers.objectWithoutPropertiesLoose(a,["loadState"]);a=b("AdsConversionWindowUtils").getDefaultConversionWindowMaybeExtended(a,c,e,d,f,!0);c=a.ctConvWindowDays;e=a.vtConvWindowDays;g.attribution_spec=[{event_type:b("AccountAttributionEvent").CLICK_THROUGH,window_days:c}];e!=null&&g.attribution_spec.push({event_type:b("AccountAttributionEvent").VIEW_THROUGH,window_days:e});return g}function l(a,c,d,e,f){var g=s(a),h=g&&a?a.is_autobid:c.is_autobid;a=g&&a?a.is_average_price_pacing:c.is_average_price_pacing;return e&&b("adsBillingEventGetDefaultDEPRECATED")(b("AdsBuyingTypes").AUCTION,d,e,f,c.bid_strategy,g,h,a)}function m(a,c,d,e,f,g,h){s(c)&&(f=b("nullthrows")(c).is_autobid||b("nullthrows")(c).bid_strategy===b("AdsAPIBidStrategies").LOWEST_COST_WITHOUT_CAP);c=a.currency;a=a.business_country_code;return f?void 0:e.getDefaultBidAmount(g,h,d,c,a)}function n(a){a=a.bid_constraints;var c=b("immutable").Map(a);a&&(c=c["delete"](b("AdsAPIBidConstraints").ROAS_AVERAGE_FLOOR));return c}function o(a,c,d,e,f){if(s(a))return void 0;a=!0;e&&f&&(a=b("AdsOptimizationUtils").canUseAutoBid(d,e,f,c));b("AdsAudienceDirectConfig").isDirectDealsUser&&(a=!1);return a}function p(a,c,d,e,f,g){var h=void 0,i=!0;(b("AdsAudienceDirectConfig").isDirectDealsUser||e&&g&&!o(null,c,d,e,g))&&(i=!1);i&&(h=b("AdsAPIBidStrategies").LOWEST_COST_WITHOUT_CAP);a.loadState;c=babelHelpers.objectWithoutPropertiesLoose(a,["loadState"]);d=h!==b("AdsAPIBidStrategies").LOWEST_COST_WITHOUT_CAP&&b("AdsOptimizationUtils").canUseAveragePricePacing(f,e,g,!1,c);d&&(h=b("AdsAPIBidStrategies").TARGET_COST);h||(h=b("AdsAPIBidStrategies").LOWEST_COST_WITH_BID_CAP);return h}function q(a,c,d,e){if(s(a))return void 0;a=c.pacing_type;c=a!=null?Array.from(a):[];return e.promotedObjectType===b("AdsPromotedObjectTypes").SPONSORED_MESSAGES?b("DayPartingUtils").setPacingType(c,!0,!1):b("DayPartingUtils").setPacingType(c,d==="no_pacing",d==="probabilistic_pacing_v2")}function r(a,b,c){var d=c.account,e=c.appData,f=c.appInstallsTracked,g=c.appURL,h=c.campaignGroup,i=c.hasAdvertisableAppEvents,j=c.hasBackingApplication,k=c.hasConversionPixelSelected,l=c.hasOfflineConversionSelected,m=c.pixelConversionEvent,n=c.productCatalogID,o=c.productSet;c=c.promotedObjectType;return b.getDefaultOptimizationGoal({account:d,appData:e,appInstallsTracked:f,appURL:g,campaign:a,campaignGroup:h,hasAdvertisableAppEvents:i,hasBackingApplication:j,hasConversionPixelSelected:k,hasOfflineConversionSelected:l,pixelConversionEvent:m,productCatalogID:n,productSet:o,promotedObjectType:c})}function s(a){return!!(a&&b("AdsAPICampaignGroupRecordUtils").hasBudget(a))}e.exports={clearOptimizationFields:a,resetOptimizationRelatedFields:c,getDefaultAttributionSpec:k}}),null); __d("AdsPixelServerReceiveDefaultPromotedObjectDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"RECEIVE_DEFAULT_PROMOTED_OBJECT"}}),null); __d("AdsPixelServerReceivePixelStatsByEventDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"RECEIVE_PIXEL_STATS_BY_EVENT"}}),null); __d("AdsPixelServerReceivePixelStatsDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"RECEIVE_PIXEL_STATS"}}),null); __d("AdsPixelServerReceivePixelsDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"RECEIVE_PIXELS"}}),null); __d("AdsCFConversionsCampaignPlugin",["AdsAPICampaignGroupRecordUtils","AdsAPICampaignPaths","AdsAPICampaignRecordUtils","AdsAPIObjectives","AdsBootloaderUtil","AdsCampaignOptimizationPluginResolver","AdsCFDefaultCampaignPlugin","AdsCFKpiObjectiveChangeDataActionFlux","AdsDataAtom","AdsOptimizationMutationUtils","AdsPixelServerReceiveDefaultPromotedObjectDataActionFlux","AdsPixelServerReceivePixelsDataActionFlux","AdsPixelServerReceivePixelStatsByEventDataActionFlux","AdsPixelServerReceivePixelStatsDataActionFlux","AdsPromotedObjectTypes","AdsSelectorUtils","AdsValidOptimizationSubEventsLoadedActionFlux","AdsValidOptimizationSubEventsSelector","AdsWebsiteOptimizationUtil","TripConsiderationUtils","adsCFCampaignGroupRecordSelector","adsCFSelectedObjectiveSelector","adsUEditorAccountSelector_LEGACY","isTruthy","nullthrows","requireWeak"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("AdsBootloaderUtil").buildLazyStoreGetter(function(a){return b("requireWeak")("AdsPixelConversionStore",a)});a=babelHelpers["extends"]({},b("AdsCFDefaultCampaignPlugin"),{type:"campaign",key:"conversions",pivots:{objective:b("AdsAPIObjectives").CONVERSIONS},getAsyncDefaultSpecGenerationActions:function(){return new Set([b("AdsCFKpiObjectiveChangeDataActionFlux").actionType,b("AdsPixelServerReceiveDefaultPromotedObjectDataActionFlux").actionType,b("AdsPixelServerReceivePixelStatsByEventDataActionFlux").actionType,b("AdsPixelServerReceivePixelStatsDataActionFlux").actionType,b("AdsPixelServerReceivePixelsDataActionFlux").actionType,b("AdsValidOptimizationSubEventsLoadedActionFlux").actionType])},isAsyncDefaultingEnabled:function(){return!0},calculateDependencies:function(a,c){a=g(function(a){return a.getDefaultPromotedObject()},{});c=b("AdsAPICampaignGroupRecordUtils").getBuyingType(c);var d=b("AdsValidOptimizationSubEventsSelector")();return babelHelpers["extends"]({buyingType:c},a,{validOptimizationSubEventsByObjective:d})},mergeDependenciesToCampaign:function(a,c){__p&&__p();var d=c.buyingType,e=c.customConversionID,f=c.pixelID,g=c.customEventType,h=c.pixelRule;c=c.validOptimizationSubEventsByObjective;var i=a;a=b("AdsWebsiteOptimizationUtil").getPixelPromotedObjectFields();a=!(a.some(function(a){var b=i.promoted_object;return b!=null&&b.get(a)})||((a=i.promoted_object)==null?void 0:a.offline_conversion_data_set_id)!==void 0);if(b("isTruthy")(f)&&g!=null&&g!==""&&a){i=i.setIn(b("AdsAPICampaignPaths").PROMOTED_OBJECT.PIXEL_ID,f).setIn(b("AdsAPICampaignPaths").PROMOTED_OBJECT.CUSTOM_EVENT_TYPE,g);b("isTruthy")(h)&&(i=i.setIn(b("AdsAPICampaignPaths").PROMOTED_OBJECT.PIXEL_RULE,h));if(g==="PURCHASE"&&a){b("AdsDataAtom").waitFor(b("AdsSelectorUtils").getStoreDispatchTokens([b("adsCFSelectedObjectiveSelector"),b("adsUEditorAccountSelector_LEGACY"),b("adsCFCampaignGroupRecordSelector")]));f=b("adsCFSelectedObjectiveSelector")();h=b("AdsAPICampaignRecordUtils").getPromotedObjectType(f,i);if(h===b("AdsPromotedObjectTypes").PIXEL){var j;j=!!((j=i.promoted_object)==null?void 0:j.application_id);var k=b("adsUEditorAccountSelector_LEGACY")(),l=b("adsCFCampaignGroupRecordSelector")(),m=b("AdsCampaignOptimizationPluginResolver").resolve({objective:f,promotedObjectType:h});i=b("AdsOptimizationMutationUtils").resetOptimizationRelatedFields(k,i,m,f,{campaignGroup:l,hasBackingApplication:j,hasConversionPixelSelected:!0,pixelConversionEvent:g,promotedObjectType:h})}}}else b("isTruthy")(e)&&a&&(i=i.setIn(b("AdsAPICampaignPaths").PROMOTED_OBJECT.CUSTOM_CONVERSION_ID,e));i=b("TripConsiderationUtils").maybeDefaultTripConsideration(d,i,c,b("nullthrows")(this.pivots.objective));return i}});e.exports=a}),null); __d("AdsCFDestinationWebsiteDestinationDataLoadedDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"ADS_CF.WEBSITE_DESTINATION_DATA_LOADED"}}),null); __d("AdsCFEventResponsesCampaignPlugin",["AdsAccountStore","AdsAPICampaignGroupRecordUtils","AdsAPIObjectives","AdsCFDefaultCampaignPlugin","AdsCFDestinationWebsiteDestinationDataLoadedDataActionFlux","AdsCFKpiObjectiveChangeDataActionFlux","AdsCFWebsiteDestinationProvider","AdsDataAtom","AdsSelectorUtils","AdsTargetingDefaultUtils","AdsValidOptimizationSubEventsLoadedActionFlux","AdsValidOptimizationSubEventsSelector","TripConsiderationUtils","URIInitDataUtil","WebsiteDestinationDataStoreKey","adsUEditorAccountSelector_LEGACY","isTruthy","nullthrows"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=babelHelpers["extends"]({},b("AdsCFDefaultCampaignPlugin"),{type:"campaign",key:"event-responses",pivots:{objective:b("AdsAPIObjectives").EVENT_RESPONSES},isAsyncDefaultingEnabled:function(){return!0},getAsyncDefaultSpecGenerationActions:function(){return new Set([b("AdsCFKpiObjectiveChangeDataActionFlux").actionType,b("AdsCFDestinationWebsiteDestinationDataLoadedDataActionFlux").actionType,b("AdsValidOptimizationSubEventsLoadedActionFlux").actionType])},calculateDependencies:function(a,c){__p&&__p();var d;a=b("URIInitDataUtil").getDefaultDestinationID();if(a){a="https://www.facebook.com/events/"+a+"/";b("AdsDataAtom").waitFor([b("AdsCFWebsiteDestinationProvider").toFluxStore().getDispatchToken()]);d=b("AdsCFWebsiteDestinationProvider").toFluxStore().getState().get(new(b("WebsiteDestinationDataStoreKey"))({websiteURL:a})).getValue()||void 0}b("AdsDataAtom").waitFor([b("AdsAccountStore").getDispatchToken()]);a=b("AdsValidOptimizationSubEventsSelector")();c=b("AdsAPICampaignGroupRecordUtils").getBuyingType(c);return{account:b("AdsAccountStore").getSelectedAccount_LEGACY(),buyingType:c,event:d,validOptimizationSubEventsByObjective:a}},mergeDependenciesToCampaign:function(a,c){var d=c.account,e=c.buyingType,f=c.event;c=c.validOptimizationSubEventsByObjective;b("AdsDataAtom").waitFor(b("AdsSelectorUtils").getStoreDispatchTokens([b("adsUEditorAccountSelector_LEGACY")]));a=a;f&&d&&!this.__doesCampaignHaveSavedAudience(a)&&(a=this._setEventBasedTargeting(a,d,f));a=b("TripConsiderationUtils").maybeDefaultTripConsideration(e,a,c,b("nullthrows")(this.pivots.objective));return a},_setEventBasedTargeting:function(a,c,d){var e=b("AdsTargetingDefaultUtils").getDefaultLocation(d,c.business_country_code,!0)||void 0,f=d.id,g=d.name;d=d.is_admin;d=d===void 0?!1:d;var h=[];b("isTruthy")(f)&&g!=null&&g!==""&&d&&(h=[{id:f,name:g}]);return this.__mergeTargetingWithNewDefault(a,babelHelpers["extends"]({excluded_connections:h},e),c)}});e.exports=a}),null); __d("AdsCFCampaignSelectDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"ADS_CF.CAMPAIGN_SELECT"}}),null); __d("AdsCFDefaultingCampaignClearDefaultsDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"ADS_CF.CLEAR_DEFAULTS"}}),null); __d("AdsCFImportPredictionDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"ADS_CF.IMPORT_PREDICTION"}}),null); __d("AdsCFSavedAudienceUtils",["invariant","AdsAPICampaignPaths","AdsPlacementUtils","AdsTargetingSavedAudienceDataLoader","isFalsey","setByPath"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a={createSavedAudience:function(a,c,d){return b("AdsTargetingSavedAudienceDataLoader").createSavedAudience(a,d,c).then(function(a){return a.id})},getID:function(a){return a.saved_audience_id},getExpansion:function(a){return a.targeting.targeting_optimization},processCampaignObject:function(a){__p&&__p();var c=a.saved_audience_id;if(b("isFalsey")(c))return a;c=a.targeting;var d=a.placement;c||d||g(0,5747);if(!c)return a;d=b("AdsPlacementUtils").getPlacementFields(c);c=a.targeting.product_audience_specs;var e=a.targeting.excluded_product_audience_specs;!c&&!e&&delete a.targeting;b("setByPath")(a,b("AdsAPICampaignPaths").PLACEMENT,d);return a}};e.exports=a}),null); __d("AdsCFSelectNewCampaignActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"ADS_CF.SELECT_NEW_CAMPAIGN"}}),null); __d("AdsCFXCampaignxPromotedObjectProductSetIdUpdatedActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"CF.CAMPAIGNX.PROMOTED_OBJECT.PRODUCT_SET_ID_UPDATED"}}),null); __d("AdsCFXCampaignxSetDeliveryDataAction",["Laminar","ifRequired"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("ifRequired")("AdsCFAdgroupCampaignxSetDeliveryReducerPlugin",function(a){return b("ifRequired")("AdsCFAdgroupDataProvider",function(c){return b("Laminar").__createReducer(a,c,{})})})]},function(){return[]},"CF.CAMPAIGNX.SET_DELIVERY");e.exports=a}),null); __d("AdsDeliveryPaths",["AdsAPICampaignPaths"],(function(a,b,c,d,e,f){"use strict";a=[b("AdsAPICampaignPaths").ADSET_SCHEDULE,b("AdsAPICampaignPaths").ATTRIBUTION_SPEC,b("AdsAPICampaignPaths").BID_AMOUNT,b("AdsAPICampaignPaths").BID_CONSTRAINTS,b("AdsAPICampaignPaths").BID_STRATEGY,b("AdsAPICampaignPaths").BILLING_EVENT,b("AdsAPICampaignPaths").BUDGET_REMAINING,b("AdsAPICampaignPaths").DAILY_BUDGET,b("AdsAPICampaignPaths").END_TIME,b("AdsAPICampaignPaths").FREQUENCY_CONTROL_SPECS,b("AdsAPICampaignPaths").FULL_FUNNEL_EXPLORATION_MODE,b("AdsAPICampaignPaths").IS_AUTOBID,b("AdsAPICampaignPaths").IS_AVERAGE_PRICE_PACING,b("AdsAPICampaignPaths").LIFETIME_BUDGET,b("AdsAPICampaignPaths").OPTIMIZATION_GOAL,b("AdsAPICampaignPaths").OPTIMIZATION_SUB_EVENT,b("AdsAPICampaignPaths").PACING_TYPE,b("AdsAPICampaignPaths").PROMOTED_OBJECT.CUSTOM_EVENT_TYPE,b("AdsAPICampaignPaths").RECURRING_BUDGET_SEMANTICS,b("AdsAPICampaignPaths").RF_PREDICTION_ID,b("AdsAPICampaignPaths").START_TIME];e.exports=a}),null); __d("AdsUEditorAdgroupNavigateMessengerPromotedObjectActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"ADS_ADGROUP_EDITOR_NAVIGATE_MESSENGER_PROMOTED_OBJECT_TYPE"}}),null); __d("AdsUEditorAdgroupSetEnableDirectInstallDataAction",["Laminar","ifRequired"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("ifRequired")("AdsUEditorAdgroupSetEnableDirectInstallReducerPlugin",function(a){return b("ifRequired")("AdsCFAdgroupDataProvider",function(c){return b("Laminar").__createReducer(a,c,{})})})]},function(){return[]},"ADS_ADGROUP_EDITOR_SET_ENABLE_DIRECT_INSTALL");e.exports=a}),null); __d("AdsUEditorCampaignGroupSetCatalogAndProductSetActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"AdsUEditorCampaignGroupSetCatalogAndProductSetActionPlugin"}}),null); __d("AdsUEditorCampaignSetMessengerPromotedObjectTypeDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"CAMPAIGN.SET_MESSENGER_PROMOTED_OBJECT_TYPE"}}),null); __d("adsCFCampaignGetID",["AdsAPICampaignRecord","adsCampaignGetID"],(function(a,b,c,d,e,f){"use strict";a=function(a){return a instanceof b("AdsAPICampaignRecord")?b("adsCampaignGetID")(a):a.id};e.exports=a}),null); __d("adsCFCampaignIsNewID",["AdsCFNewCampaignFBID","isFalsey"],(function(a,b,c,d,e,f){"use strict";a=function(a){return b("isFalsey")(a)||a.includes(b("AdsCFNewCampaignFBID"))};e.exports=a}),null); __d("adsCFCampaignIsNew",["adsCFCampaignGetID","adsCFCampaignIsNewID"],(function(a,b,c,d,e,f){"use strict";a=function(a){a=b("adsCFCampaignGetID")(a);return b("adsCFCampaignIsNewID")(a)};e.exports=a}),null); __d("adsCampaignIsDailyBudget",["adsCampaignGetBudgetMode"],(function(a,b,c,d,e,f){"use strict";function a(a){return b("adsCampaignGetBudgetMode")(a)==="daily"}e.exports=a}),null); __d("adsCampaignIsLifetimeBudget",["adsCampaignGetBudgetMode"],(function(a,b,c,d,e,f){"use strict";function a(a){return b("adsCampaignGetBudgetMode")(a)==="lifetime"}e.exports=a}),null); __d("adsCampaignGetBudgetAmount",["adsCampaignIsDailyBudget","adsCampaignIsLifetimeBudget"],(function(a,b,c,d,e,f){"use strict";function a(a){if(b("adsCampaignIsDailyBudget")(a))return+a.daily_budget;else if(b("adsCampaignIsLifetimeBudget")(a))return+a.lifetime_budget;return 0}e.exports=a}),null); __d("adsCampaignGetTargetingApiSpec",[],(function(a,b,c,d,e,f){"use strict";function a(a){return a.targeting?a.targeting.toJS():{}}e.exports=a}),null); __d("adsCampaignIsContinuoslySchedule",["adsCampaignIsLifetimeBudget"],(function(a,b,c,d,e,f){"use strict";function a(a){return b("adsCampaignIsLifetimeBudget")(a)?!1:!a.end_time}e.exports=a}),null); __d("adsCampaignIsStartDateEditable",["AdsBaseCampaignUtils"],(function(a,b,c,d,e,f){"use strict";function a(a,c,d){return b("AdsBaseCampaignUtils").isStartDateEditable(a,c,d)}e.exports=a}),null); __d("AdsCFCampaignUtils",["fbt","invariant","AdsAPICampaignPaths","AdsAPICampaignRecord","AdsAPIPromotedObjectFields","AdsAPITargetFields","AdsBuyingTypes","AdsCampaignGroupUtils","AdsCampaignRemoveOfflineEventPromotedObjectTypeDataActionFlux","AdsCFAdgroupStateUtils","AdsCFCampaignGroupCampaignSelectAttemptDataActionFlux","AdsCFCampaignGroupReceiptSelectDataActionFlux","AdsCFCampaignGroupRegulatedCategoryChangeDataActionFlux","AdsCFCampaignGroupSelectAndUpdateDataActionFlux","AdsCFCampaignGroupSelectAttemptDataActionFlux","AdsCFCampaignGroupSelectDataActionFlux","AdsCFCampaignGroupToggleSplitTestOffDataActionFlux","AdsCFCampaignSelectDataActionFlux","AdsCFConstants","AdsCFDefaultingCampaignClearDefaultsDataActionFlux","AdsCFImportPredictionDataActionFlux","AdsCFKpiObjectiveChangeDataActionFlux","AdsCFNewCampaignFBID","AdsCFObjectiveChangeDataActionFlux","AdsCFReachFrequencyUtils","AdsCFSavedAudienceUtils","AdsCFSelectNewCampaignActionFlux","AdsCFXCampaignGroupxSetPromotedObjectDataActionFlux","AdsCFXCampaignxPromotedObjectAsyncSetAppByStoreUrlSuccessDataActionFlux","AdsCFXCampaignxPromotedObjectProductSetIdUpdatedActionFlux","AdsCFXCampaignxPromotedObjectSetAppDataActionFlux","AdsCFXCampaignxPromotedObjectSetOfflineEventSetOptimizationFieldsDataActionFlux","AdsCFXCampaignxSelectByCombinedStoreActionFlux","AdsCFXCampaignxSetDeliveryDataAction","AdsCFXCampaignxSetFromExistingToSingleDataActionFlux","AdsCFXCampaignxSetFromSingleToExistingDataActionFlux","AdsDateUtils","AdsDeliveryPaths","AdsPlacementAPISpecReaderUtils","AdsPlacementTargetingFields","AdsUEditorAdgroupNavigateMessengerPromotedObjectActionFlux","AdsUEditorAdgroupSetEnableDirectInstallDataAction","AdsUEditorCampaignGroupSetCatalogAndProductSetActionFlux","AdsUEditorCampaignSelectAppPromotedObjectTypeDataActionFlux","AdsUEditorCampaignSelectMessengerPromotedObjectTypeDataActionFlux","AdsUEditorCampaignSelectOfflinePromotedObjectTypeDataActionFlux","AdsUEditorCampaignSelectPixelPromotedObjectTypeDataActionFlux","AdsUEditorCampaignSetMessengerPromotedObjectTypeDataActionFlux","AdsUEditorCampaignSetOfflineFromPageSetPromotedObjectTypeDataActionFlux","AdsUEditorCampaignSetPageSetFromOfflinePromotedObjectTypeDataActionFlux","AdsUEditorCampaignSetPromotedProductSetIDDataActionFlux","AdsUEditorHostIDs","AdsUEditorPromotedObjectSetWebsiteOptimizationFieldsDataActionFlux","AdsUniformValue","DateConsts","DateTime","adsCampaignGetBudgetAmount","adsCampaignGetBudgetMode","adsCampaignGetCampaignDayCount","adsCampaignGetDefaultStartDate","adsCampaignGetID","adsCampaignGetISODateTimeString","adsCampaignGetTargetingApiSpec","adsCampaignIsContinuoslySchedule","adsCampaignIsDailyBudget","adsCampaignIsLifetimeBudget","adsCampaignIsStartDateEditable","adsCFCampaignIsNew","adsCFCampaignIsNewID","adsPlacementAPISpecReaderIsActiveFacebookPosition","adsPlacementAPISpecReaderIsActivePublisherPlatform","immutable","objectValues","parseISODate","whitelistObjectKeys"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();var i=b("AdsCFConstants").CampaignValidationErrors,j=b("immutable").Set([b("AdsUEditorCampaignSetMessengerPromotedObjectTypeDataActionFlux").actionType,b("AdsCampaignRemoveOfflineEventPromotedObjectTypeDataActionFlux").actionType,b("AdsCFXCampaignGroupxSetPromotedObjectDataActionFlux").actionType,b("AdsUEditorCampaignGroupSetCatalogAndProductSetActionFlux").actionType,b("AdsCFXCampaignxPromotedObjectAsyncSetAppByStoreUrlSuccessDataActionFlux").actionType,b("AdsCFXCampaignxPromotedObjectProductSetIdUpdatedActionFlux").actionType,b("AdsUEditorCampaignSetPromotedProductSetIDDataActionFlux").actionType,b("AdsCFXCampaignxPromotedObjectSetAppDataActionFlux").actionType,b("AdsCFXCampaignxPromotedObjectSetOfflineEventSetOptimizationFieldsDataActionFlux").actionType,b("AdsUEditorAdgroupNavigateMessengerPromotedObjectActionFlux").actionType,b("AdsUEditorCampaignSelectMessengerPromotedObjectTypeDataActionFlux").actionType,b("AdsUEditorPromotedObjectSetWebsiteOptimizationFieldsDataActionFlux").actionType,b("AdsUEditorCampaignSelectAppPromotedObjectTypeDataActionFlux").actionType,b("AdsUEditorCampaignSelectPixelPromotedObjectTypeDataActionFlux").actionType,b("AdsUEditorCampaignSelectOfflinePromotedObjectTypeDataActionFlux").actionType,b("AdsUEditorCampaignSetOfflineFromPageSetPromotedObjectTypeDataActionFlux").actionType,b("AdsUEditorCampaignSetPageSetFromOfflinePromotedObjectTypeDataActionFlux").actionType]),k=b("immutable").Set([].concat(Array.from(j.values()),[b("AdsCFCampaignGroupToggleSplitTestOffDataActionFlux").actionType])),l=b("immutable").Set([b("AdsCFCampaignGroupSelectDataActionFlux").actionType,b("AdsCFCampaignGroupSelectAndUpdateDataActionFlux").actionType,b("AdsCFKpiObjectiveChangeDataActionFlux").actionType,b("AdsCFDefaultingCampaignClearDefaultsDataActionFlux").actionType,b("AdsCFObjectiveChangeDataActionFlux").actionType,b("AdsCFCampaignGroupReceiptSelectDataActionFlux").actionType,b("AdsCFCampaignGroupToggleSplitTestOffDataActionFlux").actionType,b("AdsCFCampaignGroupSelectAttemptDataActionFlux").actionType,b("AdsCFCampaignGroupRegulatedCategoryChangeDataActionFlux").actionType]),m=l.add(b("AdsCFSelectNewCampaignActionFlux").actionType),n=b("immutable").Set([b("AdsCFCampaignSelectDataActionFlux").actionType,b("AdsCFCampaignGroupCampaignSelectAttemptDataActionFlux").actionType,b("AdsCFXCampaignxSelectByCombinedStoreActionFlux").actionType]),o=b("immutable").Set([].concat(n.toArray(),[b("AdsCFImportPredictionDataActionFlux").actionType,b("AdsCFSelectNewCampaignActionFlux").actionType,b("AdsCFXCampaignxSetFromExistingToSingleDataActionFlux").actionType,b("AdsCFXCampaignxSetFromSingleToExistingDataActionFlux").actionType])),p=b("AdsAPICampaignRecord").getSpec().targeting,q={generateTimeoutMessage:function(){return g._("We're sorry, but your browser has received no response from the server in a long time. Please check your connection and try saving your campaign again.")},getDailyBudget:function(a,c){__p&&__p();c=b("adsCampaignGetBudgetMode")(a);if(!c)return 0;if(b("adsCampaignIsDailyBudget")(a))return b("adsCampaignGetBudgetAmount")(a);c=q.getStartDate(a);var d=q.getEndDate(a);d||h(0,4180);c=b("adsCampaignGetCampaignDayCount")(c,d);return b("adsCampaignGetBudgetAmount")(a)/c},getDateToClosestMinute:function(a){a=a.getTime()-a.getSeconds()*b("DateConsts").MS_PER_SEC-a.getMilliseconds();return new Date(a)},getStartDate:function(a){return!a.start_time?new Date():b("AdsDateUtils").parseISODate(a.start_time)},getEndDate:function(a){a=b("AdsDateUtils").sanitizeDateTimeFromAPI(a.end_time);return a&&b("AdsDateUtils").parseISODate(a)},getStartDateToClosestMinute:function(a){return q.getDateToClosestMinute(q.getStartDate(a))},getEndDateToClosestMinute:function(a){a=q.getEndDate(a);return a?q.getDateToClosestMinute(a):null},getAdjustedEndDate:function(a,b){var c=new Date(),d;be){a=a.setIn(b("AdsAPICampaignPaths").START_TIME,b("adsCampaignGetISODateTimeString")(d,c));if(a.end_time){d=b("parseISODate")(a.end_time);d=d-e;e=b("adsCampaignGetISODateTimeString")(new Date(Date.now()+d),c);return a.setIn(b("AdsAPICampaignPaths").END_TIME,e)}}}return a},removeCampaignGroupBudgetRollDownFields:function(a){return a.withMutations(function(a){b("AdsCampaignGroupUtils").getCampaignGroupBudgetRollDownFieldPaths().forEach(function(b){b=b.campaignPath;a.deleteIn(b)})})},onCFDeliverySpecChange:function(a,c){var d=b("AdsCFAdgroupStateUtils").getAdgroupRecords(c),e=null;if(d.length>0){e=(d=d[0].creative)==null?void 0:d.enable_direct_install}d=b("AdsCFAdgroupStateUtils").getAdgroupIDs(c);b("AdsCFXCampaignxSetDeliveryDataAction").dispatch({adgroupIDs:d,ids:[a.get("id")||b("AdsCFNewCampaignFBID")],deliverySpec:a},{line:"707",module:"AdsCFCampaignUtils.js"});e!=null&&b("AdsUEditorAdgroupSetEnableDirectInstallDataAction").dispatch({adgroupIDs:d,enableDirectInstall:e,hostID:b("AdsUEditorHostIDs").CREATION},{line:"713",module:"AdsCFCampaignUtils.js"})},getPromotedObjectFromCampaignSpec:function(a){return b("objectValues")(b("AdsAPIPromotedObjectFields")).reduce(function(c,d){var e=a.getIn(["promoted_object",d]);e!==null&&e!==void 0&&(d==="pixel_id"&&(e=e.toString()),c[d]=new(b("AdsUniformValue"))(e));return c},{})}};function r(a,c){var d=a.toJS();if(b("adsCampaignIsContinuoslySchedule")(a))delete d.start_time,d.end_time=String(0);else{a=b("adsCampaignIsStartDateEditable")(q.isNew(a),b("DateTime").fromISOString(d.start_time,c).toDate());a||delete d.start_time;(!d.end_time||b("DateTime").fromISOString(d.end_time,c).toDate()0?d==="link"?"status":d:"status";d=b==="event"?a.message:c==null?void 0:c.description;return babelHelpers["extends"]({},a,{caption:c==null?void 0:c.title,description:d,link:(c==null?void 0:c.unshimmed_url)||(c==null?void 0:c.url),name:c==null?void 0:c.title,object_id:c==null?void 0:(a=c.target)==null?void 0:a.id,source:c==null?void 0:(d=c.media)==null?void 0:d.source,type:b})}e.exports=a}),null); __d("AdsPagePostDataManager",["fbt","AdsBaseDataManager","AdsGraphAPI","AdsPagePostBatchLoadedDataAction","AdsPagePostBatchLoadErrorDataAction","AdsPostFields","adsPagePostResponseShaper","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h="U";a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.loadAll=function(a){var b=this;a.forEach(function(a){return b.load(a)})};d.load=function(a){var c=this;b("promiseDone")(b("AdsGraphAPI").get(e.id).object("page_post",a).batched().get({date_format:h,fields:b("AdsPostFields")}),function(d){d=b("adsPagePostResponseShaper")(d);return c.__handleSuccess(["load"],a,null,d)},this.__handleError.bind(this,["load"],a,null))};d.__onBatchLoaded=function(a,c){b("AdsPagePostBatchLoadedDataAction").dispatch({posts:a,versions:c},{line:"67",module:"AdsPagePostDataManager.js"})};d.__onBatchLoadError=function(a,c){var d=this,e=new Map();a.forEach(function(a,b){e.set(b,d.__getObjectError(b,a))});b("AdsPagePostBatchLoadErrorDataAction").dispatch({errors:e,versions:c},{line:"85",module:"AdsPagePostDataManager.js"})};d.__getObjectTypeLabel=function(){return g._("Page post")};return c}(b("AdsBaseDataManager"));c=new a();e.exports=c}),null); __d("AdsPagePostProviderPlugin",["AdsPagePostDataManager","LoadObjectMap"],(function(a,b,c,d,e,f){"use strict";a={initialState:function(a){return b("LoadObjectMap").create(function(c){a(function(a){return a.setLoading(c)}),b("AdsPagePostDataManager").loadAll(Array.from(c))})}};e.exports=a}),null); __d("AdsPagePostListLoadErrorDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"PAGE_POST.LIST.LOAD_ERROR");e.exports=a}),null); __d("AdsPagePostListLoadedDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"PAGE_POST.LIST.LOADED");e.exports=a}),null); __d("AdsPagePostListPartialLoadDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"PAGE_POST.LIST.PARTIAL_LOAD");e.exports=a}),null); __d("AdsPagePostListDataManager",["fbt","AdsBaseListDataManager","AdsGraphAPI","AdsPagePostBatchLoadedDataAction","AdsPagePostListLoadedDataAction","AdsPagePostListLoadErrorDataAction","AdsPagePostListPartialLoadDataAction","AdsPostFields","GraphAPIPaging","adsPagePostResponseShaper","promiseDone","whitelistObjectKeys"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h="U",i=150,j=15,k=["created_time","id"];a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.loadFor=function(a){this.$AdsPagePostListDataManagerClass1(a)};d.loadForWithStopFn=function(a,b){this.$AdsPagePostListDataManagerClass1(a,b)};d.loadForWithOptions=function(a,b){this.$AdsPagePostListDataManagerClass1(a,null,b)};d.$AdsPagePostListDataManagerClass1=function(a,c,d){var f=this,g={fields:b("AdsPostFields"),limit:j,date_format:h};d&&Object.assign(g,d);b("promiseDone")(b("AdsGraphAPI").get(e.id).object("page",a).edge("feed").batched().get(g).then(b("GraphAPIPaging").eachPage(function(b){return f.$AdsPagePostListDataManagerClass2(a,b.data)},i,c)),this.__handleSuccess.bind(this,["load"],a,null),this.__handleError.bind(this,["load"],a,null))};d.getStopFn=function(a){return function(b){b=b.data;return b&&b.length>0?+b[b.length-1].created_timeb)return-1;else return 0};d.__getActionTypes=function(){return[b("AdsPagePostBatchCreatedDataActionFlux").actionType,b("AdsPagePostBatchDeletedDataActionFlux").actionType,b("AdsPagePostListLoadErrorDataActionFlux").actionType,b("AdsPagePostListLoadedDataActionFlux").actionType,b("AdsPagePostListPartialLoadDataActionFlux").actionType]};d.__onDispatch=function(a){__p&&__p();a=a.action;switch(a.actionType){case b("AdsPagePostBatchDeletedDataActionFlux").actionType:this.$AdsPagePostListStoreClass1(a.ids);break;case b("AdsPagePostListLoadedDataActionFlux").actionType:this.__handleDataFor(a.pageID,a.pagePosts,b("AdsLoadState_LEGACY").LOADED);break;case b("AdsPagePostListPartialLoadDataActionFlux").actionType:this.__handleDataFor(a.pageID,a.pagePosts,b("AdsLoadState_LEGACY").LOADING);break;case b("AdsPagePostListLoadErrorDataActionFlux").actionType:this.__handleDataFor(a.pageID,null,b("AdsLoadState_LEGACY").ERROR);break;case b("AdsPagePostBatchCreatedDataActionFlux").actionType:this.$AdsPagePostListStoreClass2(a.ids);break}};d.$AdsPagePostListStoreClass2=function(a){var c=this;a=new Set(a.map(b("AdsPagePostUtils").getPageIdFromPagePostId_BROKEN));a.forEach(function(a){var d=c.__getMinValueFor(a);if(d){d=b("AdsPagePostListDataManager").getStopFn(d);b("AdsPagePostListDataManager").loadForWithStopFn(a,d)}})};d.$AdsPagePostListStoreClass1=function(a){var c=this,d=!1;a.forEach(function(a){var e=b("AdsPagePostUtils").getPageIdFromPagePostId_BROKEN(a);e||g(0,2544);d=c.__invalidateChild(e,a)||d});d&&this.__emitChange()};return c}(b("AdsBaseListStore"));c=new a();e.exports=c}),null); __d("adsCFGetPageStoreState_HACK",["AdsAccountStore","AdsAccountUtils","AdsDataAtom","AdsPageStore","AdsPromotablePageListStore","AFCPromotableObjectStore","distinctArray","intersectArrays"],(function(a,b,c,d,e,f){"use strict";__p&&__p();e.exports=function(){__p&&__p();b("AdsDataAtom").isDispatching()&&b("AdsDataAtom").waitFor([b("AdsAccountStore").getDispatchToken(),b("AdsPageStore").getDispatchToken(),b("AdsPromotablePageListStore").getDispatchToken(),b("AFCPromotableObjectStore").getDispatchToken()]);var a=b("AdsPromotablePageListStore").getFor(b("AdsAccountStore").getSelectedAccountIDX());a=a.list;a=a;var c=b("AdsAccountUtils").hasCapability(b("AdsAccountStore").getSelectedAccount().getValue(),"CAN_USE_AAC_ENFORCE_PO_SELECTOR");if(c){c=b("AFCPromotableObjectStore").get(b("AdsAccountStore").getSelectedAccountIDX()).getValue();if(c){c=b("distinctArray")(c.promotable_page_ids);a=b("intersectArrays")(c,a)}}return b("AdsPageStore").getAll(a)}}),null); __d("adsCFGetReachFrequencyState_HACK",["AdsDataAtom","requireWeak"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=null;b("requireWeak")("AdsReachFrequencyFlowStore",function(a){return g=a});e.exports=function(){if(g){b("AdsDataAtom").isDispatching()&&b("AdsDataAtom").waitFor([g.getDispatchToken()]);return g.getCurrentState_DO_NOT_USE()}else return{}}}),null); __d("adsCFGetDefaultPageUIState_HACK",["AdsAccountStore","AdsAPICampaignGroupRecordUtils","AdsDataAtom","AdsDefaultPageDataProvider","AdsLoadStateUtils_LEGACY","AdsPagePostListStore","AdsPageStore","AdsSelectorUtils","ApiPagePaths","FBLogger","adsCFCampaignGroupRecordSelector","adsCFGetPageStoreState_HACK","adsCFGetReachFrequencyState_HACK","getByPath","nullthrows"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function g(a){b("AdsDataAtom").isDispatching()&&b("AdsDataAtom").waitFor([b("AdsPageStore").getDispatchToken()]);a=b("AdsPageStore").get(a);return b("AdsLoadStateUtils_LEGACY").isLoading(a)?null:a}function h(a){return b("getByPath")(a,b("ApiPagePaths").IS_PUBLISHED,!1)}function i(a,c){if(!c)return!0;a=b("getByPath")(a,b("ApiPagePaths").USERPERMISSIONS.DATA,[]);return a.some(function(a){return a.business&&a.business.id===c})}function j(a,b,c){__p&&__p();if(c){c=g(c);if(!c)return null;if(h(c)&&i(c,b))return c}var d=[];a.forEach(function(a){return d.push(a)});c=d.filter(h);a=c.filter(function(a){return i(a,b)});return a[0]||c[0]}e.exports=function(a){__p&&__p();b("AdsDataAtom").isDispatching()&&b("AdsDataAtom").waitFor(b("AdsSelectorUtils").getStoreDispatchTokens([b("adsCFCampaignGroupRecordSelector")]));var c=b("adsCFCampaignGroupRecordSelector")(),d=b("AdsAPICampaignGroupRecordUtils").isReachFrequency(c),e=b("adsCFGetPageStoreState_HACK")(),f=c.boosted_component_product;if(f==="boosted_automated_ads"){f=c.boosted_page_id;c=f!=null?g(f):null}else if(d){f=b("adsCFGetReachFrequencyState_HACK")();c=e.get(f.destinationID)}else{b("AdsDataAtom").isDispatching()&&b("AdsDataAtom").waitFor([b("AdsAccountStore").getDispatchToken()]);var h;if(a!=null)h=a;else{d=b("AdsDefaultPageDataProvider").toFluxSelector();b("AdsDataAtom").isDispatching()&&b("AdsDataAtom").waitFor(b("AdsSelectorUtils").getStoreDispatchTokens([d]));f=b("AdsAccountStore").getSelectedAccountID();if(f==null)b("FBLogger")("ads").mustfix("Loading default page error: The ad account should not be null to loaddefault page"),h=null;else{a=d().get(f);h=a.getValue()}}Array.from(e.keys()).some(function(a){return a===h})||(h=void 0);c=j(e,b("AdsAccountStore").getSelectedBusinessID(),h)}c&&b("AdsPagePostListStore").getFor(b("nullthrows")(c).id);return c}}),null); __d("AdsCFLeadGenerationCampaignPlugin",["errorCode","AdsAPICampaignGroupRecordUtils","AdsAPIObjectives","AdsCFCampaignUtils","AdsCFDefaultCampaignPlugin","AdsCFKpiObjectiveChangeDataActionFlux","AdsDataAtom","AdsErrorType_DEPRECATED","AdsPageBatchLoadedDataActionFlux","AdsPageStore","AdsPromotablePageListBatchLoadedDataActionFlux","AdsPromotablePageListLoadedDataActionFlux","AdsUEditorCampaignSetPageIdDataActionFlux","AdsValidOptimizationSubEventsLoadedActionFlux","AdsValidOptimizationSubEventsSelector","TripConsiderationUtils","adsCFGetDefaultPageUIState_HACK","isFalsey","nullthrows"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=babelHelpers["extends"]({},b("AdsCFDefaultCampaignPlugin"),{type:"campaign",key:"lead-generation",pivots:{objective:b("AdsAPIObjectives").LEAD_GENERATION},isAsyncDefaultingEnabled:function(){return!0},getAsyncDefaultSpecGenerationActions:function(){return new Set([b("AdsCFKpiObjectiveChangeDataActionFlux").actionType,b("AdsPageBatchLoadedDataActionFlux").actionType,b("AdsPromotablePageListLoadedDataActionFlux").actionType,b("AdsPromotablePageListBatchLoadedDataActionFlux").actionType,b("AdsUEditorCampaignSetPageIdDataActionFlux").actionType,b("AdsValidOptimizationSubEventsLoadedActionFlux").actionType].concat(b("AdsCFDefaultCampaignPlugin").getAsyncDefaultSpecGenerationActions()))},calculateDependencies:function(a,c){a=b("AdsCFCampaignUtils").getPageIDForPromotedObject(a,b("adsCFGetDefaultPageUIState_HACK")());var d=b("AdsValidOptimizationSubEventsSelector")();c=b("AdsAPICampaignGroupRecordUtils").getBuyingType(c);if(b("isFalsey")(a))return{buyingType:c,validOptimizationSubEventsByObjective:d};b("AdsDataAtom").waitFor([b("AdsPageStore").getDispatchToken()]);a=b("AdsPageStore").get(a);return{buyingType:c,page:a,validOptimizationSubEventsByObjective:d}},mergeDependenciesToCampaign:function(a,c){var d=c.buyingType,e=c.page;c=c.validOptimizationSubEventsByObjective;a=a;a=b("AdsCFCampaignUtils").setPageIDForPromotedObject(a,e);a=b("TripConsiderationUtils").maybeDefaultTripConsideration(d,a,c,b("nullthrows")(this.pivots.objective));return a},shouldLockAdPage:function(a){var c=a===b("AdsErrorType_DEPRECATED").CAMPAIGN_MISSING_PAGE;a=a===1815089;return c||a}});e.exports=a}),null); __d("AdsCFLinkClicksAppCampaignPlugin",["AdsAPIObjectives","AdsCFAppCampaignPluginCommon","AdsCFDefaultCampaignPlugin","AdsPromotedObjectTypes"],(function(a,b,c,d,e,f){"use strict";a=babelHelpers["extends"]({},b("AdsCFDefaultCampaignPlugin"),b("AdsCFAppCampaignPluginCommon"),{type:"campaign",key:"link-clicks/app",pivots:{objective:b("AdsAPIObjectives").LINK_CLICKS,promotedObjectType:b("AdsPromotedObjectTypes").MOBILE_APP}});e.exports=a}),null); __d("AdsCFLinkClicksCampaignPlugin",["AdsAPICampaignGroupRecordUtils","AdsAPIObjectives","AdsCFDefaultCampaignPlugin","AdsValidOptimizationSubEventsLoadedActionFlux","AdsValidOptimizationSubEventsSelector","TripConsiderationUtils","nullthrows"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=babelHelpers["extends"]({},b("AdsCFDefaultCampaignPlugin"),{type:"campaign",key:"link-clicks",pivots:{objective:b("AdsAPIObjectives").LINK_CLICKS},getAsyncDefaultSpecGenerationActions:function(){return new Set([b("AdsValidOptimizationSubEventsLoadedActionFlux").actionType])},isAsyncDefaultingEnabled:function(){return!0},calculateDependencies:function(a,c){a=b("AdsValidOptimizationSubEventsSelector")();c=b("AdsAPICampaignGroupRecordUtils").getBuyingType(c);return{buyingType:c,validOptimizationSubEventsByObjective:a}},mergeDependenciesToCampaign:function(a,c){var d=c.buyingType;c=c.validOptimizationSubEventsByObjective;return b("TripConsiderationUtils").maybeDefaultTripConsideration(d,a,c,b("nullthrows")(this.pivots.objective))}});e.exports=a}),null); __d("AdsCFLinkClicksCanvasAppCampaignPlugin",["AdsAPIObjectives","AdsCFAppCampaignPluginCommon","AdsCFDefaultCampaignPlugin","AdsPromotedObjectTypes"],(function(a,b,c,d,e,f){"use strict";a=babelHelpers["extends"]({},b("AdsCFDefaultCampaignPlugin"),b("AdsCFAppCampaignPluginCommon"),{type:"campaign",key:"link-clicks/canvas-app",pivots:{objective:b("AdsAPIObjectives").LINK_CLICKS,promotedObjectType:b("AdsPromotedObjectTypes").CANVAS_APP}});e.exports=a}),null); __d("AdsCFMessagesCampaignPlugin",["AdCampaignDestination","AdsAccountStore","AdsAccountUtils","AdsAPICampaignGroupRecordUtils","AdsAPICampaignPaths","AdsAPIObjectives","AdsCFCampaignUtils","AdsCFDefaultCampaignPlugin","AdsValidOptimizationSubEventsLoadedActionFlux","AdsValidOptimizationSubEventsSelector","TripConsiderationUtils","immutable","nullthrows"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=babelHelpers["extends"]({},b("AdsCFDefaultCampaignPlugin"),{type:"campaign",key:"messages",pivots:{objective:b("AdsAPIObjectives").MESSAGES},isAsyncDefaultingEnabled:function(){return!0},getAsyncDefaultSpecGenerationActions:function(){return new Set([b("AdsValidOptimizationSubEventsLoadedActionFlux").actionType])},calculateDependencies:function(a,c){a=b("AdsValidOptimizationSubEventsSelector")();c=b("AdsAPICampaignGroupRecordUtils").getBuyingType(c);var d=b("AdsAccountStore").getSelectedAccount();d=b("AdsAccountUtils").hasCapability(d.getValue(),"IS_WHATSAPP_DEFAULT_MESSAGE_DESTINATION_OPTION");d=d?b("AdCampaignDestination").WHATSAPP:b("AdCampaignDestination").MESSENGER;return{buyingType:c,defaultDestinationType:d,validOptimizationSubEventsByObjective:a}},mergeDependenciesToCampaign:function(a,c){var d=c.buyingType,e=c.defaultDestinationType;c=c.validOptimizationSubEventsByObjective;a=a;a=b("AdsCFCampaignUtils").setDestinationType(a,e);a=b("TripConsiderationUtils").maybeDefaultTripConsideration(d,a,c,b("nullthrows")(this.pivots.objective));e===b("AdCampaignDestination").WHATSAPP&&(a=a.setIn(b("AdsAPICampaignPaths").TARGETING.IS_WHATSAPP_DESTINATION_AD,b("immutable").fromJS(!0)));return a}});e.exports=a}),null); __d("AdsCFDestinationPageDestinationDataLoadedDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"ADS_CF.PAGE_DESTINATION_DATA_LOADED"}}),null); __d("AdsCFPageDestinationDataProviderPlugin",["AdsCFDestinationDataDispatcher","LoadObjectMap"],(function(a,b,c,d,e,f){"use strict";a={initialState:function(a){return b("LoadObjectMap").create(function(c){a(function(a){return a.setLoading(c)}),c.forEach(function(a){b("AdsCFDestinationDataDispatcher").loadPage(a)})})},shouldWeakRequireReducers:!0};e.exports=a}),null); __d("AdsCFPageDestinationDataProvider",["Laminar","AdsCFPageDestinationDataProviderPlugin"],(function(a,b,c,d,e,f){"use strict";e.exports=b("Laminar").__createProvider(b("AdsCFPageDestinationDataProviderPlugin"),"AdsCFPageDestinationDataProviderPlugin")}),null); __d("AdsCFDestinationPageDestinationDataLoadedDataReducerPlugin",["LoadObject"],(function(a,b,c,d,e,f){"use strict";a={reduce:function(a,c){c=c.data;var d=c.pageID;c=c.destinationData;return a.set(d,b("LoadObject").withValue(c))}};e.exports=a}),null); __d("AdsPageSignLeadgenTosSuccessDataReducerPlugin",["AdsCFDestinationDataDispatcher","LoadObject"],(function(a,b,c,d,e,f){"use strict";a={reduce:function(a,c){b("AdsCFDestinationDataDispatcher").loadPage(c.pageID);return a.set(c.pageID,b("LoadObject").empty().loading())}};e.exports=a}),null); __d("AdsCFPageDestinationDataProviderReducerWeakRequires",["AdsCFDestinationPageDestinationDataLoadedDataReducerPlugin","AdsCFPageDestinationDataProvider","AdsPageSignLeadgenTosSuccessDataReducerPlugin"],(function(a,b,c,d,e,f){"use strict";b("AdsCFDestinationPageDestinationDataLoadedDataReducerPlugin"),b("AdsCFPageDestinationDataProvider"),b("AdsPageSignLeadgenTosSuccessDataReducerPlugin")}),null); __d("AdsCFPageDestinationProviderStore",["AdsCFPageDestinationDataProviderReducerWeakRequires","AdsCFPageDestinationDataProvider"],(function(a,b,c,d,e,f){"use strict";b("AdsCFPageDestinationDataProviderReducerWeakRequires"),e.exports=b("AdsCFPageDestinationDataProvider").toFluxStore()}),null); __d("AdsCFPageLikesCampaignPlugin",["AdsAccountStore","AdsAPICampaignGroupRecordUtils","AdsAPIObjectives","AdsAPITargetFields","AdsCFCampaignUtils","AdsCFConfig","AdsCFDefaultCampaignPlugin","AdsCFDestinationPageDestinationDataLoadedDataActionFlux","AdsCFKpiObjectiveChangeDataActionFlux","AdsCFPageDestinationProviderStore","AdsDataAtom","AdsPageBatchLoadedDataActionFlux","AdsPageStore","AdsPromotablePageListBatchLoadedDataActionFlux","AdsPromotablePageListLoadedDataActionFlux","AdsTargetingDefaultUtils","AdsUEditorCampaignSetPageIdDataActionFlux","AdsValidOptimizationSubEventsLoadedActionFlux","AdsValidOptimizationSubEventsSelector","TripConsiderationUtils","adsCFGetDefaultPageUIState_HACK","nullthrows"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function g(){return b("AdsCFConfig").hasOnlyOnePromotablePage}a=babelHelpers["extends"]({},b("AdsCFDefaultCampaignPlugin"),{type:"campaign",key:"page-likes",pivots:{objective:b("AdsAPIObjectives").PAGE_LIKES},getAsyncDefaultSpecGenerationActions:function(){return new Set([b("AdsCFKpiObjectiveChangeDataActionFlux").actionType,b("AdsUEditorCampaignSetPageIdDataActionFlux").actionType,b("AdsCFDestinationPageDestinationDataLoadedDataActionFlux").actionType,b("AdsPageBatchLoadedDataActionFlux").actionType,b("AdsPromotablePageListLoadedDataActionFlux").actionType,b("AdsPromotablePageListBatchLoadedDataActionFlux").actionType].concat(b("AdsCFDefaultCampaignPlugin").getAsyncDefaultSpecGenerationActions(),[b("AdsValidOptimizationSubEventsLoadedActionFlux").actionType]))},isAsyncDefaultingEnabled:function(){return!0},calculateDependencies:function(a,c){__p&&__p();a=b("AdsCFCampaignUtils").getPageIDForPromotedObject(a,g()?b("adsCFGetDefaultPageUIState_HACK")():null);var d=b("AdsValidOptimizationSubEventsSelector")();c=b("AdsAPICampaignGroupRecordUtils").getBuyingType(c);if(!a)return{buyingType:c,validOptimizationSubEventsByObjective:d};b("AdsDataAtom").waitFor([b("AdsPageStore").getDispatchToken()]);var e=b("AdsPageStore").get(a);b("AdsDataAtom").waitFor([b("AdsCFPageDestinationProviderStore").getDispatchToken(),b("AdsAccountStore").getDispatchToken()]);a=b("AdsCFPageDestinationProviderStore").getState().get(a);a=a.getValue()||void 0;return{account:b("AdsAccountStore").getSelectedAccount_LEGACY(),buyingType:c,destination:a,page:e,validOptimizationSubEventsByObjective:d}},mergeDependenciesToCampaign:function(a,c){var d=c.account,e=c.buyingType,f=c.destination,g=c.page;c=c.validOptimizationSubEventsByObjective;a=b("AdsCFCampaignUtils").setPageIDForPromotedObject(a,g);a=b("TripConsiderationUtils").maybeDefaultTripConsideration(e,a,c,b("nullthrows")(this.pivots.objective));if(this.__doesCampaignHaveSavedAudience(a))return a;g&&f&&d&&(a=this._setPageBasedTargeting(a,d,f,g));return a},_setPageBasedTargeting:function(a,c,d,e){var f=b("AdsTargetingDefaultUtils").getDefaultLocation(d,c.business_country_code,!0)||void 0;return this.__mergeTargetingWithNewDefault(a,babelHelpers["extends"]((a={},a[b("AdsAPITargetFields").EXCLUDED_CONNECTIONS]=[{id:e.id,name:e.name}],a[b("AdsAPITargetFields").AGE_MIN]=b("AdsTargetingDefaultUtils").getDefaultMinimumAge(d.minimum_age),a),f),c)},shouldLockAdPage:function(a){return!1}});e.exports=a}),null); __d("AdsCFPostEngagementCampaignPlugin",["AdsAPICampaignGroupRecordUtils","AdsAPIObjectives","AdsCFDefaultCampaignPlugin","AdsValidOptimizationSubEventsLoadedActionFlux","AdsValidOptimizationSubEventsSelector","TripConsiderationUtils","nullthrows"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=babelHelpers["extends"]({},b("AdsCFDefaultCampaignPlugin"),{type:"campaign",key:"post-engagement",pivots:{objective:b("AdsAPIObjectives").POST_ENGAGEMENT},getAsyncDefaultSpecGenerationActions:function(){return new Set([b("AdsValidOptimizationSubEventsLoadedActionFlux").actionType])},isAsyncDefaultingEnabled:function(){return!0},calculateDependencies:function(a,c){a=b("AdsValidOptimizationSubEventsSelector")();c=b("AdsAPICampaignGroupRecordUtils").getBuyingType(c);return{buyingType:c,validOptimizationSubEventsByObjective:a}},mergeDependenciesToCampaign:function(a,c){var d=c.buyingType;c=c.validOptimizationSubEventsByObjective;return b("TripConsiderationUtils").maybeDefaultTripConsideration(d,a,c,b("nullthrows")(this.pivots.objective))}});e.exports=a}),null); __d("AdsCFReachCampaignPlugin",["AdsAPICampaignPaths","AdsAPIObjectives","AdsCFCampaignUtils","AdsCFDefaultCampaignPlugin","AdsCFKpiObjectiveChangeDataActionFlux","AdsDataAtom","AdsErrorType_DEPRECATED","AdsPageBatchLoadedDataActionFlux","AdsPageStore","AdsPromotablePageListBatchLoadedDataActionFlux","AdsPromotablePageListLoadedDataActionFlux","adsCFGetDefaultPageUIState_HACK"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=babelHelpers["extends"]({},b("AdsCFDefaultCampaignPlugin"),{type:"campaign",key:"reach",pivots:{objective:b("AdsAPIObjectives").REACH},isAsyncDefaultingEnabled:function(){return!0},getAsyncDefaultSpecGenerationActions:function(){return new Set([b("AdsCFKpiObjectiveChangeDataActionFlux").actionType,b("AdsPageBatchLoadedDataActionFlux").actionType,b("AdsPromotablePageListLoadedDataActionFlux").actionType,b("AdsPromotablePageListBatchLoadedDataActionFlux").actionType].concat(b("AdsCFDefaultCampaignPlugin").getAsyncDefaultSpecGenerationActions()))},calculateDependencies:function(a){a=b("AdsCFCampaignUtils").getPageIDForPromotedObject(a,b("adsCFGetDefaultPageUIState_HACK")());if(!a)return{};b("AdsDataAtom").waitFor([b("AdsPageStore").getDispatchToken()]);a=b("AdsPageStore").get(a);return{page:a}},mergeDependenciesToCampaign:function(a,c){c=c.page;return b("AdsCFCampaignUtils").setPageIDForPromotedObject(a,c)},__mergeObjectiveSpecificStaticDefaults:function(a,c){c=b("AdsCFCampaignUtils").getPageIDForPromotedObject(a,b("adsCFGetDefaultPageUIState_HACK")());if(!c)return a;a=a.asMutable();a.setIn(b("AdsAPICampaignPaths").PROMOTED_OBJECT.PAGE_ID,c);return a.asImmutable()},shouldLockAdPage:function(a){return a===b("AdsErrorType_DEPRECATED").CAMPAIGN_MISSING_PAGE}});e.exports=a}),null); __d("AdsCFInitPageAndPageSetIDFromURIActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"AdsCFInitPageAndPageSetIDFromURIActionPlugin"}}),null); __d("AdsCFAppDestinationDataUtils",["AdsAppUtils","getObjectValues","isTruthy","nullthrows"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a={hasStoreURL:function(a,c){if(a.object_store_url===c||a.original_object_url===c)return!0;return!a.object_store_urls?!1:b("getObjectValues")(a.object_store_urls).includes(c)},getStoreURL:function(a){if(a.object_store_url!=null&&a.object_store_url!=="")return a.object_store_url;if(a.original_object_url!=null&&a.original_object_url!==""&&a.object_store_urls){var c=b("AdsAppUtils").getAppStoreNameFromUrl(a.object_store_urls,b("nullthrows")(a.original_object_url));if(b("isTruthy")(c))return b("nullthrows")(a.object_store_urls)[c]}return null}};e.exports=a}),null); __d("AdsCFAppDestinationDataStoreUtils",["AdsCFAppDestinationDataUtils"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function g(a,b){a=a.getData().find(function(a){a=a.getValue();return!a?!1:b(a)});return!a||a.isLoading()?null:a.getValue()}a={getByAppID:function(a,b){return g(a,function(a){return a.id===b})},getByStoreURL:function(a,c){return g(a,function(a){return b("AdsCFAppDestinationDataUtils").hasStoreURL(a,c)})}};e.exports=a}),null); __d("AdsCFAppDestinationDataStoreSelectors",["AdsCFAppDestinationDataProvider","AdsCFAppDestinationDataStoreUtils","AdsCFDestinationDataDispatcher","LoadObject","adsCFGetAccountAPIState_HACK","adsCreateStoreSelector","isTruthy","nullthrows"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("AdsCFAppDestinationDataProvider").toFluxStore(),h=b("LoadObject").empty();a=b("adsCreateStoreSelector")([g],function(a){a=a.storeURL;var c=b("AdsCFAppDestinationDataStoreUtils").getByStoreURL(g.getState(),a);if(!c){var d=b("adsCFGetAccountAPIState_HACK")().account_id;b("AdsCFDestinationDataDispatcher").loadAppByStoreURL(a,d);return b("LoadObject").loading()}return g.getState().get(b("nullthrows")(c.id))},e.id+".getByStoreURL");c=b("adsCreateStoreSelector")([g],function(a){var c;a=a.campaign;c=(c=a.promoted_object)==null?void 0:c.application_id;a=(a=a.promoted_object)==null?void 0:a.object_store_url;if(b("isTruthy")(c))return g.getState().get(c);return b("isTruthy")(a)?g.getState().get(a):h},e.id+".getByCampaign");e.exports={getByStoreURL:a,getByCampaign:c}}),null); __d("AdsSetMessengerPromotedObjectSource",["keyMirror"],(function(a,b,c,d,e,f){"use strict";a=b("keyMirror")({SELECT_CLICK_TO_MESSENGER_IN_CF:null,SELECT_CLICK_TO_MESSENGER_IN_PE:null,SELECT_SPONSORED_MESSAGE_IN_CF:null,SELECT_SPONSORED_MESSAGE_IN_PE:null});e.exports=a}),null); __d("ProductSetDataProviderPlugin",["FBLogger","LoadObjectMap","LoadObjectOperations","ProductSetAPIClient","isValidID","promiseDone","promiseLoadObjectsFromKeys"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function g(a,b){a(function(a){return a.merge(Array.from(b.productSetIDs).map(function(c){return[c,a.get(c).setOperation(b.operation)]}))})}function h(a,b){a(function(a){return a.merge(b.productSets)})}a={initialState:function(a){return b("LoadObjectMap").create(function(c){g(a,{productSetIDs:c,operation:b("LoadObjectOperations").LOADING}),b("promiseDone")(b("promiseLoadObjectsFromKeys")(c,b("ProductSetAPIClient").loadRecord),function(b){h(a,{productSets:b})})},function(a,c){if(!b("isValidID")(c)){b("FBLogger")("dpa").blameToPreviousFile().warn('ProductSetDataProviderPlugin expected valid Product Set ID, but got "%s"',c);return!1}return a.isEmpty()})}};e.exports=a}),null); __d("ProductSetDataProvider",["Laminar","ProductSetDataProviderPlugin"],(function(a,b,c,d,e,f){"use strict";e.exports=b("Laminar").__createProvider(b("ProductSetDataProviderPlugin"),"ProductSetDataProviderPlugin")}),null); __d("AdsCFOptimizationStoreUtils",["AdsAPICampaignGroupRecordUtils","AdsCampaignPlacementAddDataActionFlux","AdsCFAppDestinationDataStoreSelectors","AdsCFCampaignGroupSelectAttemptDataActionFlux","AdsCFCampaignUtils","AdsCFXCampaignGroupxSetPromotedObjectDataActionFlux","AdsCFXCampaignxPromotedObjectSetOfflineEventSetOptimizationFieldsDataActionFlux","AdsDataAtom","AdsPromotedObjectTypes","AdsSelectorUtils","AdsSetMessengerPromotedObjectSource","AdsUEditorCampaignGroupSetCatalogAndProductSetActionFlux","AdsUEditorCampaignSelectOfflinePromotedObjectTypeDataActionFlux","AdsUEditorCampaignSelectPixelPromotedObjectTypeDataActionFlux","AdsUEditorCampaignSetOfflineFromPageSetPromotedObjectTypeDataActionFlux","AdsUEditorPromotedObjectSetWebsiteOptimizationFieldsDataActionFlux","ProductSetDataProvider","adsCFCampaignGroupRecordSelector","adsCFGetAccountAPIState_HACK"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("ProductSetDataProvider").toFluxStore();function h(a,c,d){b("AdsDataAtom").waitFor(b("AdsSelectorUtils").getStoreDispatchTokens([b("adsCFCampaignGroupRecordSelector")]));a=b("adsCFGetAccountAPIState_HACK")();d=b("adsCFCampaignGroupRecordSelector")();a.loadState;a=babelHelpers.objectWithoutPropertiesLoose(a,["loadState"]);return{account:a,campaignGroup:d,hasBackingApplication:c}}function a(a,c){__p&&__p();var d=null;a.type===b("AdsCFXCampaignGroupxSetPromotedObjectDataActionFlux").actionType&&a.promotedObject&&(d=a.promotedObject.product_catalog_id);a.type===b("AdsUEditorCampaignGroupSetCatalogAndProductSetActionFlux").actionType&&a.catalogID!=null&&(d=a.catalogID);if(a.type===b("AdsCFCampaignGroupSelectAttemptDataActionFlux").actionType){var e;d=(e=a.partialCampaignGroup)==null?void 0:(e=e.promoted_object)==null?void 0:e.product_catalog_id}e=a.type===b("AdsUEditorPromotedObjectSetWebsiteOptimizationFieldsDataActionFlux").actionType&&(a.websiteOptimizationObject.pixel_id!==void 0||a.websiteOptimizationObject.custom_conversion_id!==void 0);var f=a.type===b("AdsCFXCampaignxPromotedObjectSetOfflineEventSetOptimizationFieldsDataActionFlux").actionType||a.type===b("AdsUEditorCampaignSelectOfflinePromotedObjectTypeDataActionFlux").actionType||a.type===b("AdsUEditorCampaignSetOfflineFromPageSetPromotedObjectTypeDataActionFlux").actionType,i=null,j=null;a.type===b("AdsUEditorPromotedObjectSetWebsiteOptimizationFieldsDataActionFlux").actionType&&a.websiteOptimizationObject&&(i=b("AdsPromotedObjectTypes").PIXEL,j=a.websiteOptimizationObject.custom_event_type);a.type===b("AdsUEditorCampaignSelectPixelPromotedObjectTypeDataActionFlux").actionType&&(i=b("AdsPromotedObjectTypes").PIXEL);a.type===b("AdsCampaignPlacementAddDataActionFlux").actionType&&a.eventSource===b("AdsSetMessengerPromotedObjectSource").SELECT_SPONSORED_MESSAGE_IN_CF&&(i=b("AdsPromotedObjectTypes").SPONSORED_MESSAGES);var k=b("adsCFCampaignGroupRecordSelector")(),l=a.objectStoreURL,m,n,o,p,q=null;if(b("AdsCFCampaignUtils").shouldRegenerateCampaignOptimizationGoal(a.type)){p=!!a.appID;o=!!a.advertisableAppEvents&&a.advertisableAppEvents.length>0;n=a.appInstallsTracked;b("AdsDataAtom").waitFor([].concat(b("AdsSelectorUtils").getStoreDispatchTokens([b("AdsCFAppDestinationDataStoreSelectors").getByCampaign]),[g.getDispatchToken()]));m=a.appID&&b("AdsCFAppDestinationDataStoreSelectors").getByCampaign({campaign:c}).getValue();d=b("AdsAPICampaignGroupRecordUtils").getPromotedObjectProductCatalogID(k);k=a.defaultProductSet;var r=a.productSetID?g.getState().get(a.productSetID):null;q=r&&r.getValue()||k}else{p=!!((r=c.promoted_object)==null?void 0:r.application_id);o=!!a.advertisableAppEvents&&a.advertisableAppEvents.length>0}k=a.optimizationGoal;return babelHelpers["extends"]({},h(c,p,b("AdsCFCampaignUtils").shouldRegenerateCampaignOptimizationGoal(a.type)),{appData:m,appInstallsTracked:n,appURL:l,hasAdvertisableAppEvents:o,hasConversionPixelSelected:e,hasOfflineConversionSelected:f,prefilledOptimizationGoal:k,pixelConversionEvent:j,productCatalogID:d,productSet:q,promotedObjectType:i})}e.exports={getBaseOptimizationGoalParam:h,getOptimizationGoalParam:a}}),null); __d("AdsCustomAudienceProvider",["Laminar","AdsCustomAudienceProviderPlugin"],(function(a,b,c,d,e,f){"use strict";e.exports=b("Laminar").__createProvider(b("AdsCustomAudienceProviderPlugin"),"AdsCustomAudienceProviderPlugin")}),null); __d("AdsCustomAudienceProviderDoneReducerPlugin",[],(function(a,b,c,d,e,f){"use strict";a={reduce:function(a,b){return a.merge(b.data)}};e.exports=a}),null); __d("AdsCustomAudienceProviderDoneAction",["Laminar","AdsCustomAudienceProviderDoneReducerPlugin","AdsCustomAudienceProvider"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("Laminar").__createReducer(b("AdsCustomAudienceProviderDoneReducerPlugin"),b("AdsCustomAudienceProvider"),{})]},function(){return[]},"AdsCustomAudienceProviderDoneActionPlugin");e.exports=a}),null); __d("AdsCustomAudienceProviderPlugin",["AdsCustomAudienceProviderDoneAction","AdsGraphAPI","LoadObjectMap","LoadObjectMapMutationUtil","promiseDone","promiseLoadObjects"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a={initialState:function(a){return b("LoadObjectMap").create(function(c){a(function(a){return b("LoadObjectMapMutationUtil").setValueListToLoading(a,c)});var d=new Map();c.forEach(function(a){return d.set(a,b("AdsGraphAPI").get(e.id).adaccount(a).edge("customaudiences").get({limit:100,fields:"id,data_source,name,owner_account_info,subtype"}).then(function(a){return a.data}))});b("promiseDone")(b("promiseLoadObjects")(d),function(a){b("AdsCustomAudienceProviderDoneAction").dispatch({data:a},{line:"48",module:"AdsCustomAudienceProviderPlugin.js"})})})}};e.exports=a}),null); __d("AdsCustomAudienceProviderDoneActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"AdsCustomAudienceProviderDoneActionPlugin"}}),null); __d("AdsFlatPageSetLoadedActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"AdsFlatPageSetLoadedAction"}}),null); __d("AdsOfflineConversionTargetingUtils",["AdsAPICampaignPaths","adsCommonTargetingGetDefaultCountryByBusinessCountryCode","immutable"],(function(a,b,c,d,e,f){"use strict";a={setDefaultGeoTargeting:function(a,c){a=a.removeIn(b("AdsAPICampaignPaths").TARGETING.PLACE_PAGE_SET_IDS).setIn(b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.path).setIn(b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.TYPES,b("immutable").List(["home","recent"])).setIn(b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.COUNTRIES,b("immutable").List.of(b("adsCommonTargetingGetDefaultCountryByBusinessCountryCode")(c.business_country_code)));return a},setCustomAudience:function(a,c){a=a.setIn(b("AdsAPICampaignPaths").TARGETING.CUSTOM_AUDIENCES,b("immutable").fromJS([{id:c.id,name:c.name,data_source:c.data_source}]));return a}};e.exports=a}),null); __d("AdsFlatPageSetLoadErrorActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"AdsFlatPageSetLoadError"}}),null); __d("AdsPageSetStore",["AdsDataAtom","AdsFlatPageSetLoadedActionFlux","AdsFlatPageSetLoadErrorActionFlux","AdsPlacePageSetDataManager","Cache","FluxStore","LoadObject","adsCreateStoreThunkSelector"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(d,a);var c=d.prototype;c.getDataManager=function(){return b("AdsPlacePageSetDataManager")};function d(c){c=a.call(this,c)||this;c.getFlatPageSetForPageSelector=b("adsCreateStoreThunkSelector")(babelHelpers.assertThisInitialized(c),c.getFlatPageSetForPage.bind(babelHelpers.assertThisInitialized(c)));c.$AdsPageSetStore1=new(b("Cache"))();return c}c.getFlatPageSetForPage=function(a,c){var d=this.$AdsPageSetStore1.get(a);d||(d=b("LoadObject").loading(),b("AdsPlacePageSetDataManager").getOrCreateFlatPageSetID(c,a),this.$AdsPageSetStore1.set(a,d));return d};c.__getActionTypes=function(){return[b("AdsFlatPageSetLoadErrorActionFlux").actionType,b("AdsFlatPageSetLoadedActionFlux").actionType]};c.__onDispatch=function(a){a=a.action;switch(a.type){case b("AdsFlatPageSetLoadedActionFlux").actionType:this.$AdsPageSetStore2(a);this.__emitChange();break;case b("AdsFlatPageSetLoadErrorActionFlux").actionType:this.$AdsPageSetStore3(a);this.__emitChange();break;default:return}};c.$AdsPageSetStore2=function(a){this.$AdsPageSetStore1.set(a.pageID,b("LoadObject").withValue(a.pageSetID))};c.$AdsPageSetStore3=function(a){this.$AdsPageSetStore1.set(a.pageID,b("LoadObject").withError(a.error))};return d}(b("FluxStore"));a.__moduleID=e.id;e.exports=new a(b("AdsDataAtom"))}),null); __d("AdsPredefinedPlacePageSetLoadSuccessDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"PREDEFINED_PLACE_PAGE_SET_LOAD_SUCCESS"}}),null); __d("AdsPredefinedPlacePageSetLoadErrorDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"PREDEFINED_PLACE_PAGE_SETS_LOAD_ERROR"}}),null); __d("AdsPredefinedPlacePageSetLoadingDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"PREDEFINED_PLACE_PAGE_SET_LOADING"}}),null); __d("AdsPredefinedPlacePageSetStore",["AdsDataAtom","AdsPlacePageSetDataManager","AdsPredefinedPlacePageSetLoadErrorDataActionFlux","AdsPredefinedPlacePageSetLoadingDataActionFlux","AdsPredefinedPlacePageSetLoadSuccessDataActionFlux","FluxLoadObjectStore","LoadObject","immutable"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("immutable").Record({accountID:"",pageID:"",pagesSelection:"custom"});a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.__getActionTypes=function(){return[this.getActionTypeStartLoad(),b("AdsPredefinedPlacePageSetLoadErrorDataActionFlux").actionType,b("AdsPredefinedPlacePageSetLoadSuccessDataActionFlux").actionType,b("AdsPredefinedPlacePageSetLoadingDataActionFlux").actionType]};d.reduce=function(a,c){c=c.action;var d=c.accountID,e=c.pageID,f=c.pagesSelection;switch(c.type){case b("AdsPredefinedPlacePageSetLoadingDataActionFlux").actionType:return this.__setLoading(a,[g({accountID:d,pageID:e,pagesSelection:f})]);case b("AdsPredefinedPlacePageSetLoadSuccessDataActionFlux").actionType:return this.__handleOne(a,g({accountID:d,pageID:e,pagesSelection:f}),c.pageSetID);case b("AdsPredefinedPlacePageSetLoadErrorDataActionFlux").actionType:return this.__handleOne(a,g({accountID:d,pageID:e,pagesSelection:f}),c.error);default:return a}};d.getPredefinedPageSetIDs=function(a,b){return[this.getMostRecentPageSet(a,b),this.getDefaultPageSet(a,b)]};d.getMostRecentPageSet=function(b,c){return a.prototype.get.call(this,g({accountID:b,pageID:c,pagesSelection:"custom"}))};d.getDefaultPageSet=function(b,c){return a.prototype.get.call(this,g({accountID:b,pageID:c,pagesSelection:"country_default"}))};d.isMostRecent=function(c,d,e){c=g({accountID:c,pageID:d,pagesSelection:"custom"});return!a.prototype.has.call(this,c)?b("LoadObject").withValue(!1):a.prototype.get.call(this,c).map(function(a){return a===e})};d.isDefaultPageset=function(c,d,e){c=g({accountID:c,pageID:d,pagesSelection:"country_default"});if(!a.prototype.has.call(this,c))return b("LoadObject").withValue(!1);d=a.prototype.get.call(this,c);return d.isLoading()?b("LoadObject").loading():b("LoadObject").withValue(d.getValue()===e)};d.__load=function(a){switch(a.pagesSelection){case"custom":b("AdsPlacePageSetDataManager").fetchMostRecentPageSet(a.accountID,a.pageID);break;case"country_default":b("AdsPlacePageSetDataManager").fetchDefaultPageSet(a.accountID,a.pageID);break}};return c}(b("FluxLoadObjectStore"));a.__moduleID=e.id;e.exports=new a(b("AdsDataAtom"))}),null); __d("AdsStoreVisitMeasurementPageEligibilityLoadedDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"STORE_VISIT_MEASUREMENT_PAGE_ELIGIBILITY.LOADED"}}),null); __d("AdsMeasurableLocationUtils",["regeneratorRuntime","AdsLocationBreakdownDataLoader","AdsLocationBreakdownTypes","AdsMeasurableLocationKey","AdsMeasurableLocationsDataLoader","adsTargetingGetCountriesFromSpec","isTruthy"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a,c,d){__p&&__p();var e,f,g;return b("regeneratorRuntime").async(function(h){__p&&__p();while(1)switch(h.prev=h.next){case 0:e=c&&c.length>0?c[0]:null;if(!d){h.next=5;break}f=b("adsTargetingGetCountriesFromSpec")(d);h.next=8;break;case 5:h.next=7;return b("regeneratorRuntime").awrap(b("AdsLocationBreakdownDataLoader").getBreakdown(b("isTruthy")(e)?e:a,b("isTruthy")(e)?"place_page_set":"page",b("AdsLocationBreakdownTypes").COUNTRY).then(function(a){return a&&a.length>0?[a.sort(function(a,b){return b.num_pages-a.num_pages})[0].location_id]:[]}));case 7:f=h.sent;case 8:if(!(f.length===0)){h.next=10;break}return h.abrupt("return",!1);case 10:h.next=12;return b("regeneratorRuntime").awrap(b("AdsMeasurableLocationsDataLoader").loadStatuses(f.map(function(c){return new(b("AdsMeasurableLocationKey"))({pageID:a,countryCode:c})})));case 12:g=h.sent;return h.abrupt("return",Array.isArray(g.payload.locations)&&g.payload.locations.every(function(a){return a.is_eligible}));case 14:case"end":return h.stop()}},null,this)}e.exports={isCountryAndPageEligibleForStoreVisitsOptimization:a}}),null); __d("AdsStoreVisitMeasurementPageEligibilityErroredDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"STORE_VISIT_MEASUREMENT_PAGE_ELIGIBILITY.ERRORED");e.exports=a}),null); __d("AdsStoreVisitMeasurementPageEligibilityLoadedDataAction",["Laminar","ifRequired"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("ifRequired")("AdsCFAdgroupStoreVisitMeasurementPageEligibilityLoadedReducerPlugin",function(a){return b("ifRequired")("AdsCFAdgroupDataProvider",function(c){return b("Laminar").__createReducer(a,c,{})})})]},function(){return[]},"STORE_VISIT_MEASUREMENT_PAGE_ELIGIBILITY.LOADED");e.exports=a}),null); __d("AdsStoreVisitMeasurementPageEligibilityDataDispatcher",["AdsMeasurableLocationUtils","AdsStoreVisitMeasurementPageEligibilityErroredDataAction","AdsStoreVisitMeasurementPageEligibilityLoadedDataAction","isTruthy","promiseDone"],(function(a,b,c,d,e,f){"use strict";a={loadStatus:function(a,c){b("promiseDone")(b("AdsMeasurableLocationUtils").isCountryAndPageEligibleForStoreVisitsOptimization(a,b("isTruthy")(c)?[c]:void 0),function(d){return b("AdsStoreVisitMeasurementPageEligibilityLoadedDataAction").dispatch({pageID:a,pageSetID:c,isEligible:d},{line:"28",module:"AdsStoreVisitMeasurementPageEligibilityDataDispatcher.js"})},function(d){return b("AdsStoreVisitMeasurementPageEligibilityErroredDataAction").dispatch({pageID:a,pageSetID:c,eligibilityError:d},{line:"34",module:"AdsStoreVisitMeasurementPageEligibilityDataDispatcher.js"})})}};e.exports=a}),null); __d("AdsStoreVisitMeasurementPageEligibilityErroredDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"STORE_VISIT_MEASUREMENT_PAGE_ELIGIBILITY.ERRORED"}}),null); __d("AdsStoreVisitMeasurementPageEligibilityStore",["AdsDataAtom","AdsStoreVisitMeasurementPageEligibilityDataDispatcher","AdsStoreVisitMeasurementPageEligibilityErroredDataActionFlux","AdsStoreVisitMeasurementPageEligibilityLoadedDataActionFlux","FluxLoadObjectStore"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.__getActionTypes=function(){return[this.getActionTypeStartLoad(),b("AdsStoreVisitMeasurementPageEligibilityErroredDataActionFlux").actionType,b("AdsStoreVisitMeasurementPageEligibilityLoadedDataActionFlux").actionType]};d.reduce=function(a,c){c=c.action;var d;switch(c.type){case b("AdsStoreVisitMeasurementPageEligibilityLoadedDataActionFlux").actionType:d=this.$AdsStoreVisitMeasurementPageEligibilityStore1(c.pageID,c.pageSetID);return this.__handleOne(a,d,c.isEligible);case b("AdsStoreVisitMeasurementPageEligibilityErroredDataActionFlux").actionType:d=this.$AdsStoreVisitMeasurementPageEligibilityStore1(c.pageID,c.pageSetID);return this.__handleOne(a,d,c.eligibilityError);default:return a}};d.__load=function(a){a=this.$AdsStoreVisitMeasurementPageEligibilityStore2(a);b("AdsStoreVisitMeasurementPageEligibilityDataDispatcher").loadStatus(a.pageID,a.pageSetID)};d.get=function(b,c){return a.prototype.get.call(this,this.$AdsStoreVisitMeasurementPageEligibilityStore1(b,c))};d.$AdsStoreVisitMeasurementPageEligibilityStore1=function(a,b){return b?a+"-"+b:""+a};d.$AdsStoreVisitMeasurementPageEligibilityStore2=function(a){a=a.split("-");var b=a[0];a=a[1];return{pageID:b,pageSetID:a}};return c}(b("FluxLoadObjectStore"));a.__moduleID=e.id;e.exports=new a(b("AdsDataAtom"))}),null); __d("SignalsOfflineConversionsUtils",[],(function(a,b,c,d,e,f){"use strict";__p&&__p();a={constructKeyFromConversionObject:function(a){var b=a.type,c=a.data_set,d=a.custom_conversion;a=a.custom_event_type;var e=c.id;c=c.product_set_id;b=b==="custom_conversion"&&d!=null?d.rule:a;d=[e,b];return(c==null?d:[].concat(d,[c])).join("_")},constructKeyFromPromotedObject:function(a){var b=a.offline_conversion_data_set_id,c=a.pixel_rule,d=a.custom_event_type;a=a.product_set_id;c=c||d;if(b==null||c==null)return null;d=[b,c];return(a==null?d:[].concat(d,[a])).join("_")},getUnifiedOfflineEventSetPromotedObject:function(a){if(!a)return{offline_conversion_data_set_id:null};var b={};b.offline_conversion_data_set_id=a.data_set.id;b.custom_event_type=a.custom_event_type;a.type==="custom_conversion"&&a.custom_conversion!=null&&(b.pixel_rule=a.custom_conversion.rule);a.data_set.source==="OFFLINE_CATALOG"&&(b.product_set_id=a.data_set.product_set_id);return b},isEligibleConversion:function(a){return a.eligibility==="good"}};e.exports=a}),null); __d("XOfflinePromotedObjectAsyncController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/offline_events/promoted_objects/",{account_id:{type:"Int",required:!0},objective:{type:"String"}})}),null); __d("SignalsDSAdAccountPromotedObjectStore",["Promise","AdsPixelConversionStandardEvents","AsyncRequest","SignalsLoadObjectStore","SignalsOfflineConversionsUtils","XOfflinePromotedObjectAsyncController"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("SignalsOfflineConversionsUtils").constructKeyFromConversionObject,h=Object.freeze({COMPLETE_REGISTRATION:"CompleteRegistration",LEAD:"Lead",PURCHASE:"Purchase"});a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.__getName=function(){return e.id};d.__getLoader=function(a){__p&&__p();var c=b("XOfflinePromotedObjectAsyncController").getURIBuilder().setInt("account_id",a.get("accountID")).setString("objective",a.get("objective")).getURI();return new(b("Promise"))(function(a,d){new(b("AsyncRequest"))().setURI(c).setHandler(function(c){var d={};c.payload.forEach(function(a){var c=g(a),e=a.type==="custom_conversion"&&a.custom_conversion!=null?a.custom_conversion.name:b("AdsPixelConversionStandardEvents")[h[a.custom_event_type]].name;a.name=e;d[c]=a});a(d)}).setErrorHandler(function(a,b){return d(new Error(b))}).send()})};return c}(b("SignalsLoadObjectStore"));e.exports=new a()}),null); __d("SignalsDSAdAccountPromotedObjectStoreKey",["immutable"],(function(a,b,c,d,e,f){"use strict";a=b("immutable").Record({accountID:void 0,objective:void 0});c=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}return b}(a);e.exports=c}),null); __d("AdsCFStoreVisitsCampaignPlugin",["errorCode","AdsAccountStore","AdsAccountUtils","AdsAPICampaignGroupRecordUtils","AdsAPICampaignPaths","AdsAPIObjectives","AdsAPIOptimizationGoals","AdsCampaignOptimizationPluginResolver","AdsCFDefaultCampaignPlugin","AdsCFInitPageAndPageSetIDFromURIActionFlux","AdsCFKpiObjectiveChangeDataActionFlux","AdsCFOptimizationStoreUtils","AdsCFXCampaignGroupxSetPromotedObjectDataActionFlux","AdsCustomAudienceProviderDoneActionFlux","AdsCustomAudienceProvider","AdsCustomAudienceType","AdsDataAtom","AdsFlatPageSetLoadedActionFlux","AdsLoadStateUtils_LEGACY","AdsOfflineConversionTargetingUtils","AdsOptimizationMutationUtils","AdsPageBatchLoadedDataActionFlux","AdsPageSetStore","AdsPageStore","AdsPageUtils","AdsPlacementAPISpecWriterUtils","AdsPlacementEligibilityInfoUtils","AdsPlacementUtils","AdsPredefinedPlacePageSetLoadSuccessDataActionFlux","AdsPredefinedPlacePageSetStore","AdsPromotedObjectTypes","AdsRegulatedCategory","AdsStoreVisitMeasurementPageEligibilityLoadedDataActionFlux","AdsStoreVisitMeasurementPageEligibilityStore","LoadObject","SignalsDSAdAccountPromotedObjectStore","SignalsDSAdAccountPromotedObjectStoreKey","adsAccountGK","adsCampaignGenerateNameFromCampaign","gkx","immutable","objectValues"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h=b("AdsCustomAudienceProvider").toFluxStore();function i(a){switch(a.type){case b("AdsPredefinedPlacePageSetLoadSuccessDataActionFlux").actionType:case b("AdsFlatPageSetLoadedActionFlux").actionType:case b("AdsStoreVisitMeasurementPageEligibilityLoadedDataActionFlux").actionType:return a.pageID;default:return null}}function j(a,c){a=b("adsCampaignGenerateNameFromCampaign")(a)===a.name;return!a?c:c.setIn(b("AdsAPICampaignPaths").NAME,b("adsCampaignGenerateNameFromCampaign")(c))}function k(a,c){var d=c.account;if(c.isUsingRegulatedCategory===!0&&d!=null)return b("AdsOfflineConversionTargetingUtils").setDefaultGeoTargeting(a,d);var e=p(a,c);return e&&d!=null?l(a,c,d):m(a,c)}function l(a,c,d){a=n(a,c);return b("AdsOfflineConversionTargetingUtils").setDefaultGeoTargeting(a,d)}function m(a,c){a=a.removeIn(b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.path).setIn(b("AdsAPICampaignPaths").TARGETING.PLACE_PAGE_SET_IDS,b("immutable").List());return c.isUsingPageSetForTargeting!==!0?a:a.setIn(b("AdsAPICampaignPaths").TARGETING.PLACE_PAGE_SET_IDS,b("immutable").List([c.defaultPageSetID]))}function n(a,c){c=o(a,c);if(!c)return a;a=b("AdsOfflineConversionTargetingUtils").setCustomAudience(a,c);return a}function o(a,c){__p&&__p();a=s(c.isAccountEligibleForOfflineConversionOptimization,a,c.conversions);if(!a)return null;c=c.customAudiences;if(!c)return null;var d=a.data_set.owner_business_id;a=c.filter(function(a){return a.owner_account_info.business_id===d});if(a.length===0)return null;c=a.find(function(a){return a.subtype===b("AdsCustomAudienceType").SUBTYPES.OFFLINE_REMARKETING});a=a[0];return c!=null?c:a}function p(a,b){return q(a,b.account,b.conversions,b.isAccountEligibleForOfflineConversionOptimization,b.isPageEligibleForSVMeasurement)}function q(a,c,d,e,f){__p&&__p();e=s(e,a,d);a=v(e,f);d=a===b("AdsAPIOptimizationGoals").OFFLINE_CONVERSIONS;if(!d)return!1;a=(e==null?void 0:(f=e.data_set)==null?void 0:f.source)==="OFFLINE_CATALOG";if(!a)return!1;d=c!=null?b("adsAccountGK")._(c,"2fK7fQAzT"):!1;return!d?!1:!0}function r(a,c){return a.setIn(b("AdsAPICampaignPaths").PROMOTED_OBJECT.PLACE_PAGE_SET_ID,c.defaultPageSetID)}function s(a,c,d){if(a!==!0)return null;var e=(a=c.promoted_object)==null?void 0:a.offline_conversion_data_set_id,f=(a=c.promoted_object)==null?void 0:a.custom_event_type;return b("objectValues")(d||{}).find(function(a){var b;return(a==null?void 0:(b=a.data_set)==null?void 0:b.id)===e&&(a==null?void 0:(b=a.data_set)==null?void 0:(b=b.optimization_status)==null?void 0:b.event)===f||(a==null?void 0:(b=a.data_set)==null?void 0:(b=b.optimization_status)==null?void 0:b.status)==="ACTIVE"||(a==null?void 0:(b=a.data_set)==null?void 0:b.source)==="OFFLINE_CATALOG"})}function t(a,c){__p&&__p();var d=c.account,e=c.conversions,f=c.eligibilityInfo,g=c.isAccountEligibleForOfflineConversionOptimization;c=c.isPageEligibleForSVMeasurement;if(!c||c.isLoading()||!f||!d)return a;g=s(g,a,e);e=v(g,c);c=a.optimization_goal;if(c===e)return a;c=a.setIn(b("AdsAPICampaignPaths").OPTIMIZATION_GOAL,e);var h=e===b("AdsAPIOptimizationGoals").OFFLINE_CONVERSIONS;if(h){var i;c=c.setIn(b("AdsAPICampaignPaths").PROMOTED_OBJECT.OFFLINE_CONVERSION_DATA_SET_ID,g==null?void 0:(i=g.data_set)==null?void 0:i.id).setIn(b("AdsAPICampaignPaths").PROMOTED_OBJECT.CUSTOM_EVENT_TYPE,g==null?void 0:g.custom_event_type);if((g==null?void 0:(i=g.data_set)==null?void 0:i.source)==="OFFLINE_CATALOG"){c=c.setIn(b("AdsAPICampaignPaths").PROMOTED_OBJECT.PRODUCT_SET_ID,g==null?void 0:(i=g.data_set)==null?void 0:i.product_set_id)}}else c=c.deleteIn(b("AdsAPICampaignPaths").PROMOTED_OBJECT.OFFLINE_CONVERSION_DATA_SET_ID).deleteIn(b("AdsAPICampaignPaths").PROMOTED_OBJECT.CUSTOM_EVENT_TYPE).deleteIn(b("AdsAPICampaignPaths").PROMOTED_OBJECT.PRODUCT_SET_ID);c=b("AdsOptimizationMutationUtils").resetOptimizationRelatedFields(d,c,b("AdsCampaignOptimizationPluginResolver").resolve({objective:b("AdsAPIObjectives").STORE_VISITS,promotedObjectType:h?b("AdsPromotedObjectTypes").OFFLINE_EVENT_SET:b("AdsPromotedObjectTypes").PLACE_PAGE_SET_ID}),b("AdsAPIObjectives").STORE_VISITS,babelHelpers["extends"]({},b("AdsCFOptimizationStoreUtils").getBaseOptimizationGoalParam(a,!1,!0),{prefilledOptimizationGoal:e,hasOfflineConversionSelected:h}));g=b("AdsPlacementUtils").refreshPlacements(f,e);return b("AdsPlacementAPISpecWriterUtils").setCampaignPlacement(c,g)}function u(a,c){a=i(a);var d=b("AdsPageUtils").getSharedParentPageIDs(c),e=b("AdsPageUtils").hasLocations(c);return a!=null&&a!=c.id?a:e?c.id:d[0]}function v(a,c){if(a!=null)return b("AdsAPIOptimizationGoals").OFFLINE_CONVERSIONS;return c!=null&&c.getValue()===!0?b("AdsAPIOptimizationGoals").STORE_VISITS:b("AdsAPIOptimizationGoals").REACH}a=babelHelpers["extends"]({},b("AdsCFDefaultCampaignPlugin"),{type:"campaign",key:"store-visits",pivots:{objective:b("AdsAPIObjectives").STORE_VISITS},getAsyncDefaultSpecGenerationActions:function(){return new Set([b("AdsCFKpiObjectiveChangeDataActionFlux").actionType,b("AdsCFXCampaignGroupxSetPromotedObjectDataActionFlux").actionType,b("AdsCFInitPageAndPageSetIDFromURIActionFlux").actionType,b("AdsFlatPageSetLoadedActionFlux").actionType,b("AdsStoreVisitMeasurementPageEligibilityLoadedDataActionFlux").actionType,b("AdsPredefinedPlacePageSetLoadSuccessDataActionFlux").actionType,b("AdsPageBatchLoadedDataActionFlux").actionType,"SignalsDSAdAccountPromotedObjectStore-success","SignalsDSAdAccountPromotedObjectStore-error",b("AdsCustomAudienceProviderDoneActionFlux").actionType])},isAsyncDefaultingEnabled:function(){return!0},calculateDependencies:function(a,c,d){__p&&__p();var e;if(d.type===b("AdsFlatPageSetLoadedActionFlux").actionType&&((e=a.promoted_object)==null?void 0:e.place_page_set_id))return{shouldMerge:!1};e=b("AdsAccountStore").getSelectedAccount_LEGACY();var f=b("AdsAPICampaignGroupRecordUtils").getPromotedObjectPageID(c);if(f==null||e==null)return{shouldMerge:!0};b("AdsDataAtom").waitFor([b("AdsPageStore").getDispatchToken(),b("AdsPageSetStore").getDispatchToken(),b("AdsPredefinedPlacePageSetStore").getDispatchToken(),b("AdsStoreVisitMeasurementPageEligibilityStore").getDispatchToken(),b("SignalsDSAdAccountPromotedObjectStore").getDispatchToken()]);var g=c.objective,i=e.account_id,j=e.capabilities;g=b("SignalsDSAdAccountPromotedObjectStore").get(new(b("SignalsDSAdAccountPromotedObjectStoreKey"))({accountID:i,objective:g}));f=b("AdsPageStore").get(f);if(g.isLoading()||!b("AdsLoadStateUtils_LEGACY").isLoaded(f))return{shouldMerge:!1};f=u(d,f);if(f==null)return{shouldMerge:!1};g=g.getValue()||{};var k=b("AdsPlacementEligibilityInfoUtils").buildEligibilityInformationFromCampaignSpec(a,b("AdsAPICampaignGroupRecordUtils").getBuyingType(c),j,b("AdsAPIObjectives").STORE_VISITS,void 0,void 0,f);j=b("AdsAccountUtils").hasCapabilityFromList(j,"PASS_OFFLINE_CONVERSION_OPT_GOAL_GK");var l=b("LoadObject").empty(),m=q(a,e,g,j);if(m){l=h.getState().get(i);if(l.isLoading())return{shouldMerge:!1}}m=l.getValue()||[];l=c.special_ad_category;c=l!=null&&l!==b("AdsRegulatedCategory").NONE&&b("gkx")("1054675");if(d.type===b("AdsStoreVisitMeasurementPageEligibilityLoadedDataActionFlux").actionType){a=d.pageSetID!=null?d.pageSetID:(l=a.promoted_object)==null?void 0:l.place_page_set_id;return{account:e,customAudiences:m,conversions:g,defaultPageSetID:a,eligibilityInfo:k,isAccountEligibleForOfflineConversionOptimization:j,isPageEligibleForSVMeasurement:b("LoadObject").withValue(d.isEligible),isUsingPageSetForTargeting:d.pageSetID!=null,isUsingRegulatedCategory:c,shouldMerge:!0}}if(d.type===b("AdsCFInitPageAndPageSetIDFromURIActionFlux").actionType){l=b("AdsStoreVisitMeasurementPageEligibilityStore").get(f,d.pageSetID);return{account:e,customAudiences:m,conversions:g,defaultPageSetID:d.pageSetID,eligibilityInfo:k,isAccountEligibleForOfflineConversionOptimization:j,isPageEligibleForSVMeasurement:l,isUsingPageSetForTargeting:!0,isUsingRegulatedCategory:c,shouldMerge:!0}}a=b("AdsPredefinedPlacePageSetStore").getPredefinedPageSetIDs(i,f);for(var d=a,l=Array.isArray(d),a=0,d=l?d:d[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var n;if(l){if(a>=d.length)break;n=d[a++]}else{a=d.next();if(a.done)break;n=a.value}n=n;if(n.isLoading())return{account:e,customAudiences:m,conversions:g,eligibilityInfo:k,isAccountEligibleForOfflineConversionOptimization:j,isUsingRegulatedCategory:c,shouldMerge:!0};n=n.getValue();if(n!=null){var o=b("AdsStoreVisitMeasurementPageEligibilityStore").get(f,n);return{account:e,customAudiences:m,conversions:g,defaultPageSetID:n,eligibilityInfo:k,isAccountEligibleForOfflineConversionOptimization:j,isPageEligibleForSVMeasurement:o,isUsingPageSetForTargeting:!0,isUsingRegulatedCategory:c,shouldMerge:!0}}}n=b("AdsPageSetStore").getFlatPageSetForPage(f,i);if(!n.hasValue())return{account:e,customAudiences:m,conversions:g,eligibilityInfo:k,isAccountEligibleForOfflineConversionOptimization:j,isUsingRegulatedCategory:c,shouldMerge:!0};o=b("AdsStoreVisitMeasurementPageEligibilityStore").get(f);return{account:e,customAudiences:m,conversions:g,defaultPageSetID:n.getValueEnforcing(),eligibilityInfo:k,isAccountEligibleForOfflineConversionOptimization:j,isPageEligibleForSVMeasurement:o,isUsingRegulatedCategory:c,shouldMerge:!0}},mergeDependenciesToCampaign:function(a,b){if(!b.shouldMerge)return a;var c=a;c=r(c,b);c=k(c,b);c=t(c,b);c=j(a,c);return c},shouldLockAdPage:function(a){return a===1885447},__mergeObjectiveSpecificStaticDefaults:function(a,c){c=a.deleteIn(b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.path).deleteIn(b("AdsAPICampaignPaths").PROMOTED_OBJECT.OFFER_ID).deleteIn(b("AdsAPICampaignPaths").PROMOTED_OBJECT.PLACE_PAGE_SET_ID).setIn(b("AdsAPICampaignPaths").TARGETING.PLACE_PAGE_SET_IDS,b("immutable").List());return j(a,c)}});e.exports=a}),null); __d("AdsCFVideoViewsCampaignPlugin",["AdsAPICampaignGroupRecordUtils","AdsAPIObjectives","AdsCFDefaultCampaignPlugin","AdsValidOptimizationSubEventsLoadedActionFlux","AdsValidOptimizationSubEventsSelector","TripConsiderationUtils","nullthrows"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=babelHelpers["extends"]({},b("AdsCFDefaultCampaignPlugin"),{type:"campaign",key:"video-views",pivots:{objective:b("AdsAPIObjectives").VIDEO_VIEWS},getAsyncDefaultSpecGenerationActions:function(){return new Set([b("AdsValidOptimizationSubEventsLoadedActionFlux").actionType])},isAsyncDefaultingEnabled:function(){return!0},calculateDependencies:function(a,c){a=b("AdsValidOptimizationSubEventsSelector")();c=b("AdsAPICampaignGroupRecordUtils").getBuyingType(c);return{buyingType:c,validOptimizationSubEventsByObjective:a}},mergeDependenciesToCampaign:function(a,c){var d=c.buyingType;c=c.validOptimizationSubEventsByObjective;return b("TripConsiderationUtils").maybeDefaultTripConsideration(d,a,c,b("nullthrows")(this.pivots.objective))}});e.exports=a}),null); __d("AdsCFCampaignPlugins",["adsPluginsFactory","AdsCFAppInstallsMobileAppCampaignPlugin","AdsCFAppInstallsCanvasAppCampaignPlugin","AdsCFBrandAwarenessCampaignPlugin","AdsCFConversionsCampaignPlugin","AdsCFConversionsAppCampaignPlugin","AdsCFConversionsProductSetCampaignPlugin","AdsCFDefaultCampaignPlugin","AdsCFEventResponsesCampaignPlugin","AdsCFLeadGenerationCampaignPlugin","AdsCFLinkClicksCampaignPlugin","AdsCFLinkClicksAppCampaignPlugin","AdsCFLinkClicksCanvasAppCampaignPlugin","AdsCFMessagesCampaignPlugin","AdsCFPageLikesCampaignPlugin","AdsCFPostEngagementCampaignPlugin","AdsCFProductCatalogSalesCampaignPlugin","AdsCFReachCampaignPlugin","AdsCFStoreVisitsCampaignPlugin","AdsCFVideoViewsCampaignPlugin"],(function(a,b,c,d,e,f){"use strict";a=b("adsPluginsFactory")(function(){return[b("AdsCFAppInstallsMobileAppCampaignPlugin"),b("AdsCFAppInstallsCanvasAppCampaignPlugin"),b("AdsCFBrandAwarenessCampaignPlugin"),b("AdsCFConversionsCampaignPlugin"),b("AdsCFConversionsAppCampaignPlugin"),b("AdsCFConversionsProductSetCampaignPlugin"),b("AdsCFDefaultCampaignPlugin"),b("AdsCFEventResponsesCampaignPlugin"),b("AdsCFLeadGenerationCampaignPlugin"),b("AdsCFLinkClicksCampaignPlugin"),b("AdsCFLinkClicksAppCampaignPlugin"),b("AdsCFLinkClicksCanvasAppCampaignPlugin"),b("AdsCFMessagesCampaignPlugin"),b("AdsCFPageLikesCampaignPlugin"),b("AdsCFPostEngagementCampaignPlugin"),b("AdsCFProductCatalogSalesCampaignPlugin"),b("AdsCFReachCampaignPlugin"),b("AdsCFStoreVisitsCampaignPlugin"),b("AdsCFVideoViewsCampaignPlugin")]},function(){});e.exports=a}),null); __d("AdsUnifiedCreativeFieldPathResolvers",["AdsAPIAdAssetFeedLinkURLsFields","AdsAPIAdgroupPaths","AdsAPICallToActionPaths","AdsAppUtils","AdsAssetFeedUtils","AdsCreativeSpecTypes","AdsImageUtils","AdsObjectStorySpecUtils","AdsObjectTypeUtils","ApiAdObjectTypes"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function g(a){return b("AdsObjectTypeUtils").getCreativeSpecType(a)}function h(a){return!!(a==null?void 0:(a=a.creative)==null?void 0:a.object_story_spec)}a=function(a,c,d){if(!h(a))return null;c=g(a);return b("AdsObjectStorySpecUtils").getPaths(c).display_url};c=function(a,c,d){if(!h(a))return null;c=g(a);return b("AdsObjectStorySpecUtils").getPaths(c).eventID};d=function(a,c,d){__p&&__p();var e=g(a);if(e===b("AdsCreativeSpecTypes").STANDARD)return b("AdsAPIAdgroupPaths").CREATIVE.TITLE;if(!h(a))return null;a=c.objective;if(b("AdsAppUtils").isAppObjective(a,d))if(e===b("AdsCreativeSpecTypes").VIDEO_DATA)return b("AdsAPIAdgroupPaths").CREATIVE.OBJECT_STORY_SPEC.VIDEO_DATA.TITLE;else if(e!==b("AdsCreativeSpecTypes").TEMPLATE_DATA)return b("AdsAPIAdgroupPaths").CREATIVE.OBJECT_STORY_SPEC.LINK_DATA.NAME;return b("AdsObjectStorySpecUtils").getPaths(e).headline};f=function(a,c,d){return b("AdsImageUtils").getImageHashPath(a)};var i=function(a,c,d){d=a==null?void 0:(c=a.creative)==null?void 0:c.object_type;if(d===b("ApiAdObjectTypes").DOMAIN)return b("AdsAPIAdgroupPaths").CREATIVE.OBJECT_URL;c=g(a);if(c===b("AdsCreativeSpecTypes").STANDARD)return b("AdsAPIAdgroupPaths").CREATIVE.LINK_URL;return!h(a)?null:b("AdsObjectStorySpecUtils").getPaths(c).link},j=function(a,c,d){if(!h(a))return null;c=g(a);return b("AdsObjectStorySpecUtils").getPaths(c).link_description},k=function(a,c,d){c=g(a);if(c===b("AdsCreativeSpecTypes").STANDARD)return b("AdsAPIAdgroupPaths").CREATIVE.BODY;return!h(a)?null:b("AdsObjectStorySpecUtils").getPaths(c).message},l=function(a,c,d){c=g(a);return!h(a)?null:b("AdsObjectStorySpecUtils").getPaths(c).page_welcome_message},m=function(a,c,d){c=g(a);if(c===b("AdsCreativeSpecTypes").STANDARD)return null;return!h(a)?null:b("AdsObjectStorySpecUtils").getPaths(c).call_to_action},n=function(a,c,d){a=m(a,c,d);return!a?null:[].concat(a,b("AdsAPICallToActionPaths").VALUE.LEAD_GEN_FORM_ID)},o=function(a,c,d){a=m(a,c,d);return!a?null:[].concat(a,b("AdsAPICallToActionPaths").VALUE.LINK)},p=function(a,c,d){var e=g(a);if(e===b("AdsCreativeSpecTypes").STANDARD)return b("AdsAPIAdgroupPaths").CREATIVE.CALL_TO_ACTION_TYPE;e=m(a,c,d);return!e?null:[].concat(e,b("AdsAPICallToActionPaths").TYPE)},q=function(a,c,d){c=g(a);return!h(a)?null:b("AdsObjectStorySpecUtils").getPaths(c).retailer_item_ids},r=function(a,c,d){c=m(a,c,d);if(b("AdsAssetFeedUtils").isAdgroupUsingAssetFeedFromSpec(a))return[].concat(b("AdsAPIAdgroupPaths").CREATIVE.ASSET_FEED_SPEC.LINK_URLS,["0"],b("AdsAPIAdAssetFeedLinkURLsFields").DEEPLINK_URL);return!c?null:[].concat(c,b("AdsAPICallToActionPaths").VALUE.APP_LINK)},s=function(a,c,d){return b("AdsAPIAdgroupPaths").CREATIVE.TEMPLATE_URL_SPEC.WEB.URL};r={appLink:r,callToAction:m,callToActionLeadGenFormID:n,callToActionType:p,callToActionValue:o,displayURL:a,eventID:c,headline:d,imageHash:f,link:i,linkDescription:j,message:k,pageWelcomeMessage:l,retailerItemIDs:q,websiteUrlDeepLink:s};e.exports=r}),null); __d("AdsUnifiedCreativeFieldUtils",["AdsAPIAdgroupPaths","AdsBulkValueUtils","AdsUnifiedCreativeFieldPathResolvers","getByPath"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function g(a,c,d,e){var f={};d.forEach(function(a){return f[a.id]=a});return c.map(function(c){var d=c==null?void 0:c.campaign_id;return b("AdsUnifiedCreativeFieldPathResolvers")[a](c,f[d],e[c.id])})}a={getPath:function(a,c,d,e){return b("AdsUnifiedCreativeFieldPathResolvers")[a](c,d,e)},getValue:function(a,c,d,e){a=b("AdsUnifiedCreativeFieldPathResolvers")[a](c,d,e);return a&&b("getByPath")(c,a)},getAssetFeedValue:function(a,c,d){a=b("getByPath")(a,b("AdsAPIAdgroupPaths").CREATIVE.ASSET_FEED_SPEC.path);return!a||!a[c]||!a[c].length?null:a[c][0][d]},getBulkPathFromRawSpecs:function(a,c,d,e){a=g(a,c,d,e);c=b("AdsBulkValueUtils").aggregate(a);return c},getBulkValueFromRawSpecs:function(a,c,d,e){a=g(a,c,d,e);d=a.map(function(a,d){return a&&b("getByPath")(c[d],a)});e=b("AdsBulkValueUtils").aggregate(d);return e},getErrorsFromRawSpecs:function(a,c,d,e,f){a=g(a,d,e,f);return a.reduce(function(a,d){if(!d)return a;d=b("getByPath")(c,d);d&&a.push(d);return a},[])}};e.exports=a}),null); __d("AdsAutoNamingFormatters",["fbt","invariant","AdsAdgroupSpecUtils","AdsAPIAdgroupPaths","AdsAPICampaignPaths","AdsAPIDevicePlatform","AdsAPITargetFields","AdsAutoNamingConfig","AdsDateUtils","AdsInstagramActorIDUtils","AdsObjectivesConfig","AdsPagePostUtils","AdsPlacementAPISpecReaderUtils","AdsTargetingConstants","AdsUnifiedCreativeFieldUtils","DateTime","FBLogger","ads-objectives","formatDate","getByPath"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();var i=b("AdsPlacementAPISpecReaderUtils").convertCampaignToPlacementSpec,j=b("AdsPlacementAPISpecReaderUtils").isActiveDevicePlatform,k=b("ads-objectives").KPIObjectives,l=b("AdsAutoNamingConfig").AUTO_NAMING_FIELD_NAMES,m=3,n=50,o=5,p=new Set();p.add(l.BID_TYPE);p.add(l.GENDER);p.add(l.OPERATING_SYSTEM);p.add(l.MOBILE_DEVICE);function q(a,c){a=b("getByPath")(a,c);a&&a.length>m&&(a=a.slice(0,m));return a}function r(a){return a==null?"":a+""}function s(a,c){return r(b("getByPath")(a,c))}function t(a){return a.name||""}function u(a){var c="m/d/Y";a=a==null?void 0:a.updated_time;a=a&&b("AdsDateUtils").parseISODate(a);return!a?b("formatDate")(new(b("DateTime").now)(0).toDate(),c):b("formatDate")(a,c)}function v(a){var c=b("AdsAPIAdgroupPaths").CREATIVE.OBJECT_STORY_SPEC;a=b("getByPath")(a,c.LINK_DATA.IMAGE_HASH)||b("getByPath")(a,c.PHOTO_DATA.IMAGE_HASH)||b("getByPath")(a,c.TEMPLATE_DATA.IMAGE_HASH)||b("getByPath")(a,c.VIDEO_DATA.IMAGE_HASH)||(a==null?void 0:(c=a.creative)==null?void 0:c.image_hash);return a||""}function w(a,c,d){__p&&__p();a=a==null?void 0:(c=a.targeting)==null?void 0:c.genders;var e=g._("All");if(a){if(a.length>0){c=a.map(function(a){switch(a){case b("AdsTargetingConstants").GENDERS.Men:return g._("M");case b("AdsTargetingConstants").GENDERS.Women:return g._("F");default:a!==b("AdsTargetingConstants").GENDERS.All&&b("FBLogger")("ads").mustfix("unknown gender: %s",a);return e}});return c.join(d)}return e}return e}function x(a,b){b=a==null?void 0:(b=a.targeting)==null?void 0:b.age_min;a=a==null?void 0:(a=a.targeting)==null?void 0:a.age_max;if(!b||!a)return"";if(b===a)return a<65?a.toString():a+"+";else return a<65?b+"-"+a:b+"+"}function y(a){return a.id}function z(a){var c=s(a,b("AdsAPIAdgroupPaths").CREATIVE.OBJECT_STORY_SPEC.PAGE_ID);if(!c){var d=s(a,b("AdsAPIAdgroupPaths").CREATIVE.OBJECT_STORY_ID);d&&b("AdsPagePostUtils").isPagePostId_BROKEN(d)&&(c=b("AdsPagePostUtils").getPageIdFromPagePostId_BROKEN(d))}c||(c=s(a,b("AdsAPIAdgroupPaths").CREATIVE.OBJECT_ID));return c||""}function A(a){return r(b("AdsInstagramActorIDUtils").getInstagramActorID(a))}function B(a){a=s(a,b("AdsAPIAdgroupPaths").DISPLAY_SEQUENCE);return a?"["+a+"]":""}function C(a,c,d){c=b("AdsUnifiedCreativeFieldUtils").getValue("headline",c,a,d)||"";c.length>n&&(c=c.substr(0,n));return c}function a(a,b){p.add(b);return function(b,c,d){b=q(b,a);!b&&c&&(b=q(c,a));return b?b.join(d):""}}function c(a,b){p.add(b);return function(b,c,d){b=q(b,a);!b&&c&&(b=q(c,a));return b?b.map(function(a){return a.name}).join(d):""}}function D(a){a=a.objective;return b("AdsObjectivesConfig").getShortName(a)||b("AdsObjectivesConfig").getShortName(k.NONE)}function E(a,b,c){var d=a==null?void 0:a.bid_type;a=a==null?void 0:a.bid_info;d||b&&(d=b.bid_type,a=b.bid_info);if(d){b=[d];a&&(b=b.concat(Object.keys(a).sort()));return b.join(c).toLowerCase()}return""}function F(a){return a.substr(b("AdsAutoNamingConfig").CUSTOM_FIELD_MARKER.length)}var G=c(["targeting",b("AdsAPITargetFields").GEO_LOCATIONS,b("AdsAPITargetFields").CITIES],l.CITY),H=a(["targeting",b("AdsAPITargetFields").GEO_LOCATIONS,b("AdsAPITargetFields").COUNTRIES],l.COUNTRY),I=a(b("AdsAPICampaignPaths").TARGETING.USER_OS,l.OPERATING_SYSTEM),J=c(["targeting","geo_locations","zips"],l.ZIPCODE);p.add(l.INTERESTS);function K(a,c,d){c=a.targeting||{};a=c[b("AdsAPITargetFields").FLEXIBLE_SPEC]||[];c=a[0]?a[0][b("AdsAPITargetFields").INTERESTS]:null;return c?c.map(function(a){return a.name}).join(d):""}var L=c(b("AdsAPICampaignPaths").TARGETING.CUSTOM_AUDIENCES,l.CUSTOM_AUDIENCE_INCLUDED),M=c(b("AdsAPICampaignPaths").TARGETING.EXCLUDED_CUSTOM_AUDIENCES,l.CUSTOM_AUDIENCE_EXCLUDED);function N(a,b,c){if(O(a,b)){a=I(a,b,c);return a||g._("All Mobile OS")}return""}function O(a,c){return j(i(a),b("AdsAPIDevicePlatform").MOBILE)}function P(a,b,c){__p&&__p();if(O(a,b)){b=I(a,b,c);a=(a==null?void 0:(a=a.targeting)==null?void 0:a.user_device)||[];var d="iOS"+c+"Android",e="Android"+c+"iOS",f="";switch(b){case"":return a&&a[0]==="Feature_Phone"?g._("Feature Phones"):g._("All Mobile Devices");case"Android":f=g._("All Android Devices");break;case"iOS":f=g._("All iOS Devices");break;case d:case e:f=g._("All Android And iOS Devices");break;default:}return!a||a.length===0?f:a.join(c)}return""}function Q(a,b){return a.slice(0,b-3)+"..."}function R(a){return!!a}function S(a,b,c,d){__p&&__p();b===void 0&&(b="");a.length===c.length||h(0,4706);var e=new Map();c.some(function(f,g){var h=g>0?e.get(c[g-1]).end+b.length:0;g=h+a[g].toString().length;if(h>d)return!0;g>d&&(g=d);e.set(f,{start:h,end:g});return!1});return e}function d(a,b,c,d,e,f){return T(a,b,c,d,e,f).name}function T(a,c,d,e,f,g){__p&&__p();var i=f.getFields(),j=f.getListSeparator(),k=0;function m(f){__p&&__p();var g="";switch(f){case l.AGE:c||h(0,4707);g=x(c,d);break;case l.BID_TYPE:g=E(c,d,j);break;case l.CITY:g=G(c,d,j);break;case l.COUNTRY:g=H(c,d,j);break;case l.GENDER:c||h(0,4708);g=w(c,d,j);break;case l.INTERESTS:c||h(0,4709);g=K(c,d,j);break;case l.ADGROUP_ID:d||h(0,4710);g=y(d);break;case l.ADGROUP_NAME:d||h(0,4710);g=t(d);break;case l.CAMPAIGN_ID:c||h(0,4711);g=y(c);break;case l.CAMPAIGN_NAME:c||h(0,4712);g=t(c);break;case l.CAMPAIGN_GROUP_ID:a||h(0,4713);g=y(a);break;case l.CAMPAIGN_GROUP_NAME:a||h(0,4714);g=t(a);break;case l.OBJECTIVE:a||h(0,4715);g=D(a);break;case l.CALL_TO_ACTION:d||h(0,4710);g=r(b("AdsAdgroupSpecUtils").getCallToActionType(d));break;case l.CUSTOM_AUDIENCE_INCLUDED:g=L(c,d,j);break;case l.CUSTOM_AUDIENCE_EXCLUDED:g=M(c,d,j);break;case l.PAGE_ID:d||h(0,4710);g=z(d);break;case l.INSTAGRAM_ACCOUNT_ID:d||h(0,4710);g=A(d);break;case l.DISPLAY_SEQUENCE:d||h(0,4710);g=B(d);break;case l.HEADLINE:d||h(0,4710);a||h(0,4716);g=C(a,d,e);break;case l.IMAGE_HASH:d||h(0,4710);g=v(d);break;case l.ADGROUP_UPDATED_TIME:d||h(0,4710);g=u(d);break;case l.CAMPAIGN_UPDATED_TIME:g=u(c);break;case l.OPERATING_SYSTEM:c||h(0,4717);g=N(c,d,j);break;case l.MOBILE_DEVICE:c||h(0,4718);g=P(c,d,j);break;case l.ZIPCODE:g=J(c,d,j);break;default:if(f.indexOf(b("AdsAutoNamingConfig").CUSTOM_FIELD_MARKER)===0){g=F(f);break}h(0,4719,f)}k>0&&b("AdsAutoNamingConfig").fieldCanBeTruncated(f)&&g.length>k&&(g=g.slice(0,Math.max(o,k)));b("AdsAutoNamingConfig").fieldCanBeTrimmed(f)&&typeof g==="string"&&(g=g.trim());return g}var n=[],p=[];i.map(m).forEach(function(a,b){R(a)&&(n.push(a),p.push(i[b]))});var q=n.join(f.getFieldSeparator()),s;if(q.length<=g){s=S(n,f.getFieldSeparator(),p,g);return{name:q,fieldPositions:s,fields:p,parts:n,template:f}}var I=0;i.forEach(function(a){b("AdsAutoNamingConfig").fieldCanBeTruncated(a)&&I++});if(I<1){s=S(n,f.getFieldSeparator(),p,g);return{name:q.length>g?Q(q,g):q,fieldPositions:s,fields:p,parts:n,template:f}}var O=i.filter(function(a){return!b("AdsAutoNamingConfig").fieldCanBeTruncated(a)});O=O.map(m).filter(R).join(f.getFieldSeparator()).length;O=g-O-f.getFieldSeparator().length*I;O=Math.floor(O/I);k=O;n=i.map(m).filter(R);q=n.join(f.getFieldSeparator());q.length>g&&(q=Q(q,g));s=S(n,f.getFieldSeparator(),p,g);return{name:q,fieldPositions:s,fields:p,parts:n,template:f}}function f(a){return p.has(a)}e.exports={applyTemplate:d,createTemplateData:T,isListBasedFormatter:f,formatAge:x,formatBidType:E,formatCity:G,formatCountry:H,formatCustom:F,formatCustomAudienceIncluded:L,formatCustomAudienceExcluded:M,formatGender:w,formatHeadline:C,formatImageHash:v,formatInstagramAccountID:A,formatInterests:K,formatMobileDevice:P,formatName:t,formatObjectID:y,formatObjective:D,formatOperatingSystem:N,formatPageID:z,formatUpdatedTime:u,formatZIPCode:J}}),null); __d("adsAutoNamingCampaignFormatter",["AdsAutoNamingFormatters","AdsPromotedObjectTypes","AdsValidationConsts"],(function(a,b,c,d,e,f){"use strict";var g=b("AdsValidationConsts").maxFriendlyNameLength;function a(a,c,d){return b("AdsAutoNamingFormatters").applyTemplate(a,c,null,b("AdsPromotedObjectTypes").NONE,d,g)}e.exports=a}),null); __d("adsCFGetCampaignNameTemplate_HACK",["AdsCFAutoNamingCampaignTemplateProvider","AdsDataAtom"],(function(a,b,c,d,e,f){"use strict";var g=b("AdsCFAutoNamingCampaignTemplateProvider").toFluxStore();e.exports=function(){b("AdsDataAtom").isDispatching()&&b("AdsDataAtom").waitFor([g.getDispatchToken()]);return g.getState()}}),null); __d("AdsCFCampaignNameUtils",["AdsAPICampaignPaths","AdsAutoNamingTemplate","adsAutoNamingCampaignFormatter","adsCampaignGenerateNameFromCampaign","adsCampaignGetID","adsCFGetCampaignNameTemplate_HACK"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function g(a,c){a=b("adsCampaignGetID")(a);if(!c.has(a))return!0;c=c.get(a).getValueEnforcing();a=c.name;c=b("adsCampaignGenerateNameFromCampaign")(c);return!a||a===c}function h(a,c){return a.setIn(b("AdsAPICampaignPaths").NAME,c)}function a(a,c){var d=b("adsCFGetCampaignNameTemplate_HACK")();if(!d.isTemplateActive)return a;d=new(b("AdsAutoNamingTemplate"))(d.templateData);var e=a.toJS();c=b("adsAutoNamingCampaignFormatter")(c,e,d);return h(a,c)}function c(a,c,d){if(g(a,c)){c=b("adsCampaignGenerateNameFromCampaign")(a);return h(a,[d,c].join(" - "))}return a}e.exports={maybeUpdateCampaignNameToSuggested:c,updateCampaignName:a}}),null); __d("AdsCFCampaignStateUtils",["invariant","AdsAPICampaignPaths","AdsAPICampaignRecord","AdsPlacementAPISpecReaderUtils","AdsPlacementAPISpecWriterUtils","AdsPlacementPlatformUtils","FBLogger","LoadObject","adsCampaignGetID","immutable"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h=b("LoadObject").withValue(new(b("AdsAPICampaignRecord"))());a=function(){__p&&__p();function a(){}var c=a.prototype;c.getLoadObjectCampaignWithAggregatedVariables=function(a,c,d){if(!this.$1||!this.$2||!this.$3||this.$4(a,c)){var e=j.getActiveAggregateCampaignID(c),f=j.getAllActiveRecords(a,c);f=b("AdsPlacementAPISpecWriterUtils").aggregateCampaignPlacementSpecs(f,d.getValueEnforcing()).setIn(b("AdsAPICampaignPaths").ID,e);this.$3=d.setValue(f);this.$2=a;this.$1=c}return this.$3};c.$4=function(a,b){var c=this;return b!==this.$1||b.ids.some(function(b){c.$2||g(0,5233);return c.$2.get(b)!==a.get(b)})};return a}();var i=new a(),j={getFirstSelectedLoadObject:function(a,c,d){__p&&__p();d===void 0&&(d=!0);var e=c.ids;if(e.size===0){b("FBLogger")("ads").warn("Attemping to access campaign when none exists yet. Using empty campaign");return h}e.size>=1||g(0,5234);var f=a.get(e.first());f||g(0,5235);e.size>1&&d===!0&&(f=i.getLoadObjectCampaignWithAggregatedVariables(a,c,f));return f},getFirstSelectedRecord:function(a,b,c){return j.getFirstSelectedLoadObject(a,b,c).getValueEnforcing()},getAllActiveRecords:function(a,b){b=j.getActiveCampaignIDs(b);return b.map(function(b){b=a.get(b);b&&b.hasValue()||g(0,5235);return b.getValueEnforcing()})},getAllActiveLoadObjects:function(a,b){return a.filter(function(a,c){return b.ids.contains(c)})},getCampaignByID:function(a,b){a=a.get(b);return a&&a.getValue()},getFirstSelectedRecordNullable:function(a,b,c){var d=b.ids;return d.size===0?null:j.getFirstSelectedRecord(a,b,c)},getActiveCampaignIDs:function(a){return a.ids.toArray()},getActiveAggregateCampaignID:function(a){return a.ids.toArray().join(",")},unpackAggregateCampaignID:function(a){return a.split(",")},getAllCampaignIDs:function(a){return a.keySeq().toArray()},createCampaignStateWithCampaigns:function(a){return b("immutable").Map(a.map(function(a){return[b("adsCampaignGetID")(a),b("LoadObject").withValue(a)]}))},hasInstreamVideoPlacement:function(a,c){a=j.getFirstSelectedRecord(a,c);c=b("AdsPlacementAPISpecReaderUtils").convertCampaignRecordToPlacementSpec(a);return b("AdsPlacementPlatformUtils").hasAnyInstreamVideoPlacement(c)},hasInstreamVideoPlacementOnly:function(a,c){a=j.getFirstSelectedRecord(a,c);c=b("AdsPlacementAPISpecReaderUtils").convertCampaignRecordToPlacementSpec(a);return b("AdsPlacementPlatformUtils").hasInstreamVideoPlacementOnly(c)},hasAudienceNetworkInsteramVideoPlacement:function(a,c){a=j.getFirstSelectedRecord(a,c);c=b("AdsPlacementAPISpecReaderUtils").convertCampaignRecordToPlacementSpec(a);return b("AdsPlacementPlatformUtils").hasAudienceNetworkInstreamVideoPlacement(c)},hasAudienceNetworkPlacementOnly:function(a,c){a=j.getFirstSelectedRecord(a,c);c=b("AdsPlacementAPISpecReaderUtils").convertCampaignRecordToPlacementSpec(a);return b("AdsPlacementPlatformUtils").hasAudienceNetworkPlacementOnly(c)},hasAudienceNetworkRewardedVideoPlacement:function(a,c){a=j.getFirstSelectedRecord(a,c);c=b("AdsPlacementAPISpecReaderUtils").convertCampaignRecordToPlacementSpec(a);return b("AdsPlacementPlatformUtils").hasAudienceNetworkRewardedVideoPlacement(c)}};e.exports=j}),null); __d("adsCFCampaignGroupSpecSelector_DO_NOT_USE",["adsCFCampaignGroupRecordSelector","adsCreateSelector"],(function(a,b,c,d,e,f){"use strict";a=b("adsCreateSelector")([b("adsCFCampaignGroupRecordSelector")],function(a){return a.toJS()},{name:e.id});e.exports=a}),null); __d("AdsCFCampaignCreationMode",["keyMirror"],(function(a,b,c,d,e,f){"use strict";a=b("keyMirror")({IMPORT:null,SINGLE:null,SPLIT_TESTING:null,USING_EXISTING:null});e.exports=a}),null); __d("AdsCFActiveCampaignIDState",["AdsCFCampaignCreationMode","immutable","mapObject"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("mapObject")(b("AdsCFCampaignCreationMode"),function(a){return b("immutable").Set()});a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.clearIDs=function(){return this.set("ids",b("immutable").Set()).set("idsMap",b("immutable").Map(g))};return c}(b("immutable").Record({ids:b("immutable").Set(),idsMap:b("immutable").Map(g)}));e.exports=a}),null); __d("AdsCFNewCampaignIDGenerator",["regeneratorRuntime","AdsCFCampaignUtils"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(){__p&&__p();function a(){this.__currentNewIDIndex=0}var c=a.prototype;c.getNextNewID=function(a){a=b("AdsCFCampaignUtils").getNewIDWithIndex(this.__currentNewIDIndex,a+"_");this.__currentNewIDIndex+=1;return a};c.getNextNewIDs=function(a,c){__p&&__p();var d=a;a=b("regeneratorRuntime").mark(function a(){__p&&__p();return b("regeneratorRuntime").wrap(function(a){__p&&__p();while(1)switch(a.prev=a.next){case 0:if(!d--){a.next=5;break}a.next=3;return this.getNextNewID(c);case 3:a.next=0;break;case 5:case"end":return a.stop()}},a,this)});return Array.from(a.bind(this)())};return a}();e.exports=new a()}),null); __d("AdsCFPrefillCampaignPrefillDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"ADS_CF_PREFILL_CAMPAIGN_PREFILL"}}),null); __d("AdsCFSavedStateConstants",["keyMirrorRecursive"],(function(a,b,c,d,e,f){"use strict";a=b("keyMirrorRecursive")({CLEAR_STATE_TYPE:{ERROR_RESTORING_STATE:"",USER_INITIATED:""},RESTORE_SOURCE:{SPLIT_TEST_UNDO_NOTICE:{CREATIVE:"",OPTIMIZATION:"",PLACEMENT:"",TARGETING:""}},STATE_RESTORE_ERRORS:{INVALID_API_VERSION:"",INVALID_PLACEMENT_TYPES:"",EMPTY_ADGROUP_WITH_ACTIVE_ADGROUP_PAGE:""}});e.exports=a}),null); __d("AdsCFSplitTestTransitionToCreativeTestDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"ADS_CF.SPLIT_TEST.TRANSITION_TO_CREATIVE_TEST"}}),null); __d("AdsCFCampaignCreationModeStoreState",["AdsCFCampaignCreationMode","immutable"],(function(a,b,c,d,e,f){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}return b}(b("immutable").Record({creationMode:b("AdsCFCampaignCreationMode").SINGLE,previousCreationMode:null,extraData:null}));e.exports=a}),null); __d("AdsCampaignGroupDerivedPaths",["generatePaths"],(function(a,b,c,d,e,f){"use strict";a=Object.freeze({ACTIVITY_STATUS:"activity_status",ALLOWED_STATUSES:"allowedStatuses",BOOSTED_COMPONENT_CLIENT_APP_ID:"boostedComponentClientAppID",BOOSTED_COMPONENT_PRODUCT:"boostedComponentProduct"});c=[{pathKeys:[],expandsTo:a},{pathKeys:["ACTIVITY_STATUS"],expandsTo:{LABEL:"label",STATUS:"status",SUB_TEXT:"subText"}}];d=b("generatePaths")(c);e.exports=d}),null); __d("AdsAutomatedAdsUtils",["AdsAPICampaignGroupPaths","AdsAPIObjectives","AdsBulkValueUtils","AdsCampaignDerivedPaths","AdsCampaignGroupDerivedPaths","getBulkByPath","getByPath"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g={isAutomatedAdsCampaignGroupBulkSpec:function(a){if(!a)return!1;a=b("getBulkByPath")(a,b("AdsAPICampaignGroupPaths").BOOSTED_COMPONENT_PRODUCT);return!!a&&a.getValues().some(function(a){return a==="boosted_automated_ads"})},isAutomatedAdsCampaignGroup:function(a){return(a==null?void 0:a.boosted_component_product)==="boosted_automated_ads"},isAutomatedAdsLeadGen:function(a){if(!a)return!1;var c=b("AdsBulkValueUtils").getUniformValue(a.boostedComponentProduct);if(c==null||c!=="boosted_automated_ads")return!1;c=b("getBulkByPath")(a,b("AdsAPICampaignGroupPaths").OBJECTIVE);return!!c&&c.getValues().some(function(a){return a===b("AdsAPIObjectives").LEAD_GENERATION})},isAutomatedAdsLeadGenByCombinedCampaignGroup:function(a){return a.boosted_component_product==="boosted_automated_ads"&&a.objective===b("AdsAPIObjectives").LEAD_GENERATION},getNonAutomatedAdsObjectIDsFromSelectedIDs:function(a,c,d){var e=g.getBoostedComponentProductPathForObjectLevel(a);if(!e)return d;a=c.filter(function(a){return b("getByPath")(a,e)!=="boosted_automated_ads"});return a.map(function(a){return a.id})},getFilteredSelectedIDs:function(a,b,c,d){return a?g.getNonAutomatedAdsObjectIDsFromSelectedIDs(c,d,b):b},getBoostedComponentProductPathForObjectLevel:function(a){switch(a){case"campaign":return b("AdsCampaignGroupDerivedPaths").BOOSTED_COMPONENT_PRODUCT;case"ad_set":return b("AdsCampaignDerivedPaths").BOOSTED_COMPONENT_PRODUCT;default:return null}}};e.exports=g}),null); __d("AdsCFSelectNewCampaignSource",[],(function(a,b,c,d,e,f){"use strict";a=Object.freeze({CAMPAIGN_DIALOG:"campaign_dialog",HEADER_DROPDOWN:"header_dropdown",RECEIPT_DIALOG:"receipt_dialog",TYPEAHEAD:"typeahead"});e.exports=a}),null); __d("adsCFCampaignCreationModeReducer",["invariant","AdsAPICampaignGroupRecordUtils","AdsAssetFeedUtils","AdsAutomatedAdsUtils","AdsCFCampaignCreationMode","AdsCFCampaignCreationModeStoreState","AdsCFCampaignSelectDataActionFlux","AdsCFCampaignUtils","AdsCFImportPredictionDataActionFlux","AdsCFSavedStateSyncClearCurrentStateDataActionFlux","AdsCFSavedStateSyncRestoreStateDataActionFlux","AdsCFSelectNewCampaignActionFlux","AdsCFSelectNewCampaignSource","AdsCFXCampaignxSetFromExistingToSingleDataActionFlux","AdsCFXCampaignxSetFromSingleToExistingDataActionFlux","AdsDataAtom","AdsPageTransitionActionFlux","AdsQEStore","AdsSelectorUtils","AdsSplitTestUtils","adsCFCampaignGroupRecordSelector"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();function a(a,c){__p&&__p();b("AdsDataAtom").waitFor([].concat(b("AdsSelectorUtils").getStoreDispatchTokens([b("adsCFCampaignGroupRecordSelector")]),[b("AdsQEStore").getDispatchToken()]));var d=a;a=a.set("extraData",null);var e=b("adsCFCampaignGroupRecordSelector")();if(b("AdsAPICampaignGroupRecordUtils").hasSplitTest(e))return a.set("creationMode",b("AdsCFCampaignCreationMode").SPLIT_TESTING);if(b("AdsAutomatedAdsUtils").isAutomatedAdsCampaignGroup(e))return a.set("creationMode",b("AdsCFCampaignCreationMode").USING_EXISTING);switch(c.type){case b("AdsCFSelectNewCampaignActionFlux").actionType:return c.source===b("AdsCFSelectNewCampaignSource").TYPEAHEAD?a:a.set("creationMode",b("AdsCFCampaignCreationMode").SINGLE);case b("AdsCFCampaignSelectDataActionFlux").actionType:e=b("AdsCFCampaignCreationMode").USING_EXISTING;var f=null;b("AdsAssetFeedUtils").isCampaignWithDCAssetFeed(c.campaignSpec)&&(e=b("AdsCFCampaignCreationMode").SINGLE,f={dynamicCreativeCampaignID:c.campaignSpec.id});return a.set("creationMode",e).set("extraData",f);case b("AdsCFImportPredictionDataActionFlux").actionType:return a.set("creationMode",b("AdsCFCampaignCreationMode").IMPORT);case b("AdsCFXCampaignxSetFromSingleToExistingDataActionFlux").actionType:return a.set("creationMode",b("AdsCFCampaignCreationMode").USING_EXISTING);case b("AdsCFXCampaignxSetFromExistingToSingleDataActionFlux").actionType:return a.set("creationMode",b("AdsCFCampaignCreationMode").SINGLE);case b("AdsCFSavedStateSyncRestoreStateDataActionFlux").actionType:return a.set("creationMode",h(c));case b("AdsPageTransitionActionFlux").actionType:case b("AdsCFSavedStateSyncClearCurrentStateDataActionFlux").actionType:return new(b("AdsCFCampaignCreationModeStoreState"))()}if(b("AdsCFCampaignUtils").isExistingCampaignSelectionAction(c.type))return a.set("creationMode",b("AdsCFCampaignCreationMode").USING_EXISTING);return b("AdsCFCampaignUtils").shouldRegenerateCampaign(c.type)?a.set("creationMode",b("AdsCFCampaignCreationMode").SINGLE):d}function h(a){__p&&__p();a=a.appState;if(b("AdsSplitTestUtils").hasSplitTest(a.campaign))return b("AdsCFCampaignCreationMode").SPLIT_TESTING;a=a.ad_set;if(!a.length)return b("AdsCFCampaignCreationMode").SINGLE;var c=a.every(function(a){return b("AdsCFCampaignUtils").isNew(a)});a=a.every(function(a){return!b("AdsCFCampaignUtils").isNew(a)});c!==a||g(0,2046);return a?b("AdsCFCampaignCreationMode").USING_EXISTING:b("AdsCFCampaignCreationMode").SINGLE}e.exports=a}),null); __d("AdsCFCampaignCreationModeStore",["AdsCFCampaignCreationModeStoreState","AdsDataAtom","FluxReduceStore","adsCFCampaignCreationModeReducer"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getInitialState=function(){return new(b("AdsCFCampaignCreationModeStoreState"))()};d.reduce=function(a,c){c=c.action;a=a;a=a.set("previousCreationMode",a.creationMode);a=b("adsCFCampaignCreationModeReducer")(a,c);return a};return c}(b("FluxReduceStore"));a.__moduleID=e.id;e.exports=new a(b("AdsDataAtom"))}),null); __d("adsCFCampaignCreationModeSelector",["AdsCFCampaignCreationModeStore","AdsStoreUtils"],(function(a,b,c,d,e,f){"use strict";b("AdsStoreUtils").toSelector(b("AdsCFCampaignCreationModeStore"));a=b("AdsStoreUtils").toSelector(b("AdsCFCampaignCreationModeStore"));e.exports=a}),null); __d("AdsCFActiveCampaignIDStore",["AdsAPICampaignGroupRecordUtils","AdsCFActiveCampaignIDState","AdsCFCampaignCreationMode","AdsCFCampaignGroupToggleSplitTestOnDataActionFlux","AdsCFCampaignUtils","AdsCFNewCampaignIDGenerator","AdsCFPrefillCampaignPrefillDataActionFlux","AdsCFSavedStateConstants","AdsCFSavedStateSyncClearCurrentStateDataActionFlux","AdsCFSavedStateSyncRestoreStateDataActionFlux","AdsCFSelectNewCampaignActionFlux","AdsCFSplitTestTransitionToCreativeTestDataActionFlux","AdsCFXCampaignxAddVariantDataActionFlux","AdsCFXCampaignxRemoveVariantsDataActionFlux","AdsDataAtom","AdsPageTransitionActionFlux","AdsSelectorUtils","AdsSplitTestSitevarConfig","AdsSplitTestUtils","AdsSplitTestVariable","AdsUEditorCampaignGroupSetSplitTestVariableActionFlux","FluxReduceStore","adsCFCampaignCreationModeSelector","adsCFCampaignGroupRecordSelector","immutable"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("AdsCFCampaignCreationMode").SINGLE,h=b("AdsCFCampaignCreationMode").SPLIT_TESTING,i=b("AdsCFCampaignCreationMode").USING_EXISTING,j=[b("adsCFCampaignCreationModeSelector"),b("adsCFCampaignGroupRecordSelector")];a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getInitialState=function(){return new(b("AdsCFActiveCampaignIDState"))()};d.getState=function(){return a.prototype.getState.call(this)};d.reduce=function(a,c){b("AdsDataAtom").waitFor(b("AdsSelectorUtils").getStoreDispatchTokens(j));a=k(a,c);return l(a)};return c}(b("FluxReduceStore"));a.__moduleID=e.id;function k(a,c){__p&&__p();c=c.action;if(b("AdsCFCampaignUtils").shouldRegenerateCampaign(c.type))return m();if(b("AdsCFCampaignUtils").isChangeCreationModeAction(c.type))return n(a,c);switch(c.type){case b("AdsCFSavedStateSyncRestoreStateDataActionFlux").actionType:return p(a,c);case b("AdsPageTransitionActionFlux").actionType:case b("AdsCFSavedStateSyncClearCurrentStateDataActionFlux").actionType:return q(a);case b("AdsCFPrefillCampaignPrefillDataActionFlux").actionType:return o(a,c);case b("AdsCFXCampaignxAddVariantDataActionFlux").actionType:return s(a,c.count);case b("AdsCFCampaignGroupToggleSplitTestOnDataActionFlux").actionType:return r(a,b("AdsSplitTestSitevarConfig").MIN_NUMBER_OF_CAMPAIGN_WITHIN_SPLIT_TEST);case b("AdsCFSplitTestTransitionToCreativeTestDataActionFlux").actionType:return r(a,c.numberOfAdgroups);case b("AdsUEditorCampaignGroupSetSplitTestVariableActionFlux").actionType:return c.isQuickCreate?a:u(a,c.variable);case b("AdsCFXCampaignxRemoveVariantsDataActionFlux").actionType:return t(a,c.campaigns)}return a}function l(a){var c=b("adsCFCampaignCreationModeSelector")().creationMode;c=w(a,c);a.ids!==c&&(a=a.set("ids",c));return a}function m(){var a=b("adsCFCampaignCreationModeSelector")().creationMode,c=b("AdsCFNewCampaignIDGenerator").getNextNewID(a);return v(new(b("AdsCFActiveCampaignIDState"))(),[c],a)}function n(a,c){__p&&__p();var d=b("adsCFCampaignCreationModeSelector")().creationMode,e=w(a,d);switch(d){case i:case h:switch(c.type){case b("AdsCFSelectNewCampaignActionFlux").actionType:e=b("immutable").Set([b("AdsCFNewCampaignIDGenerator").getNextNewID(i)]);break;default:c.campaignID&&(e=b("immutable").Set([c.campaignID]));break}break}e.size===0&&(e=b("immutable").Set([b("AdsCFNewCampaignIDGenerator").getNextNewID(d)]));return v(a,e,d)}function o(a,c){c=b("AdsCFNewCampaignIDGenerator").getNextNewID(g);return v(a,[c],g)}function p(a,c){var d=b("adsCFCampaignCreationModeSelector")().creationMode,e=c.appState.ad_set,f=c.appState.campaign;c=c.extra&&c.extra.source;var g=Object.values(b("AdsCFSavedStateConstants").RESTORE_SOURCE.SPLIT_TEST_UNDO_NOTICE).includes(c);c=e.map(function(a){return!g&&b("AdsCFCampaignUtils").isNew(a)&&!b("AdsAPICampaignGroupRecordUtils").isReachFrequency(f)?b("AdsCFNewCampaignIDGenerator").getNextNewID(d):a.id});return v(a,c,d)}function q(a){return a.clearIDs()}function r(a,c){return v(a,b("AdsCFNewCampaignIDGenerator").getNextNewIDs(c,h),h)}function s(a,c){var d=w(a,h);return v(a,d.union(b("AdsCFNewCampaignIDGenerator").getNextNewIDs(c,h)),h)}function t(a,b){var c=w(a,h);return v(a,c.subtract(b.map(function(a){return a.id})),h)}function u(a,c){return b("AdsSplitTestUtils").hasSplitTest(b("adsCFCampaignGroupRecordSelector")())&&c===b("AdsSplitTestVariable").CREATIVE?v(a,b("AdsCFNewCampaignIDGenerator").getNextNewIDs(2,h),h):a}function v(a,c,d){Array.isArray(c)&&(c=b("immutable").Set(c));return a.setIn(["idsMap",d],c)}function w(a,b){return a.getIn(["idsMap",b])}e.exports=new a(b("AdsDataAtom"))}),null); __d("adsCFGetActiveCampaignIDState_HACK",["AdsCFActiveCampaignIDStore","AdsDataAtom"],(function(a,b,c,d,e,f){"use strict";e.exports=function(){b("AdsDataAtom").isDispatching()&&b("AdsDataAtom").waitFor([b("AdsCFActiveCampaignIDStore").getDispatchToken()]);return b("AdsCFActiveCampaignIDStore").getState()}}),null); __d("adsCFCampaignAsyncDefaultSpecReducer",["AdsAPICampaignRecordUtils","AdsCFApplicationUtils","AdsCFCampaignNameUtils","AdsCFCampaignPluginResolver","AdsCFCampaignStateUtils","AdsCFCampaignUtils","AdsDataAtom","AdsMutators","AdsSelectorUtils","adsCFCampaignGroupRecordSelector","adsCFCampaignGroupSpecSelector_DO_NOT_USE","adsCFGetActiveCampaignIDState_HACK","adsCFGetApplicationCreationExperienceMode_HACK","adsCFSelectedObjectiveSelector"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("AdsCFCampaignUtils").shouldRegenerateCampaign,h=b("AdsMutators").mutateEach;function i(a,b){var c=a.getAsyncDefaultSpecGenerationActions();return a.isAsyncDefaultingEnabled()&&(g(b)||c.has(b))}function a(a,c){__p&&__p();b("AdsDataAtom").waitFor(b("AdsSelectorUtils").getStoreDispatchTokens([b("adsCFSelectedObjectiveSelector"),b("adsCFCampaignGroupRecordSelector"),b("adsCFCampaignGroupSpecSelector_DO_NOT_USE")]));var d=b("adsCFSelectedObjectiveSelector")(),e=b("adsCFCampaignGroupSpecSelector_DO_NOT_USE")();return h(a,b("AdsCFCampaignStateUtils").getActiveCampaignIDs(b("adsCFGetActiveCampaignIDState_HACK")()),function(a){__p&&__p();a=a;var f=b("AdsAPICampaignRecordUtils").getPromotedObjectType(d,a);f=b("AdsCFCampaignPluginResolver").resolve({objective:d,promotedObjectType:f});if(b("AdsCFCampaignUtils").isNew(a)&&i(f,c.type)){a=f.mergeDependenciesToCampaign(a,f.calculateDependencies(a,b("adsCFCampaignGroupRecordSelector")(),c));f=b("adsCFGetApplicationCreationExperienceMode_HACK")();f=b("AdsCFApplicationUtils").isQuickCreateMode(f);f||(a=b("AdsCFCampaignNameUtils").updateCampaignName(a,e))}return a})}e.exports=a}),null); __d("AdsCFCampaignDataStateUtils",["AdsCFCampaignUtils","LoadObject","groupArray","immutable","mapObject","AdsCFCampaignDataState"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("LoadObject").loading().setValue([]),h=b("LoadObject").empty().setValue([]),i={createStateFromCampaigns:function(a){a=a.map(function(a){return b("AdsCFCampaignUtils").processCampaignFromAPI(a)});a=b("mapObject")(b("groupArray")(a,function(a){return a.campaign_id}),function(a){return b("LoadObject").empty().setValue(a)});return new(b("AdsCFCampaignDataState"))({campaignsByCampaignGroupID:b("immutable").Map(a),hasFetched:!0})},getAllCampaigns:function(a){if(!a.hasFetched)return g;else{a=a.campaignsByCampaignGroupID.toArray().map(function(a){return a.getValueEnforcing()});a=a.reduce(function(a,b){return a.concat(b)},[]);return b("LoadObject").withValue(a)}},getCampaignsByCampaignGroupID:function(a,b){if(!a.hasFetched)return g;else if(!a.campaignsByCampaignGroupID.has(b))return h;return a.campaignsByCampaignGroupID.get(b)},getCampaignRecordByCampaignGroupAndCampaignID:function(a,b,c){a=i.getCampaignsByCampaignGroupID(a,b);return a===g||a===h?void 0:a.getValueEnforcing().find(function(a){return a.id===c})}};e.exports=i}),null); __d("AdsCFDefaultingCampaignDefaultingDataEmptyDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"ADS_CF.DEFAULTING_DATA_EMPTY");e.exports=a}),null); __d("AdsCFDefaultingCampaignDefaultingDataLoadFailedDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"ADS_CF.DEFAULTING_DATA_LOAD_FAILED");e.exports=a}),null); __d("adsCFActiveCampaignIDSelector",["AdsCFActiveCampaignIDStore","AdsStoreUtils"],(function(a,b,c,d,e,f){"use strict";a=b("AdsStoreUtils").toSelector(b("AdsCFActiveCampaignIDStore"));e.exports=a}),null); __d("AdsCFDefaultingCampaignDefaultingDataLoadSuccessDataReducerPlugin",["AdsCFCampaignStateUtils","AdsCFCampaignUtils","AdsDataAtom","AdsSelectorUtils","adsCFActiveCampaignIDSelector"],(function(a,b,c,d,e,f){"use strict";function g(a){return!!a&&b("AdsCFCampaignUtils").isNewID(a)}a={reduce:function(a,c){b("AdsDataAtom").waitFor([].concat(b("AdsSelectorUtils").getStoreDispatchTokens([b("adsCFActiveCampaignIDSelector")])));c=b("AdsCFCampaignStateUtils").getActiveAggregateCampaignID(b("adsCFActiveCampaignIDSelector")());return g(c)?a.set("shouldDefaultL2Spec",!0):a.set("shouldDefaultL2Spec",!1)}};e.exports=a}),null); __d("AdsCFDefaultingCampaignUIProviderPlugin",["immutable"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=b("immutable").Record({isDefaultsCleared:!1,shouldDefaultL2Spec:!1,hasShownDefaults:!1});var g=function(b){babelHelpers.inheritsLoose(a,b);function a(){return b.apply(this,arguments)||this}return a}(a);c=function(){return new g()};d={initialState:c()};e.exports=d}),null); __d("AdsCFDefaultingCampaignUIProvider",["Laminar","AdsCFDefaultingCampaignUIProviderPlugin"],(function(a,b,c,d,e,f){"use strict";e.exports=b("Laminar").__createProvider(b("AdsCFDefaultingCampaignUIProviderPlugin"),"AdsCFDefaultingCampaignUIProviderPlugin")}),null); __d("AdsCFDefaultingCampaignDefaultingDataLoadSuccessDataAction",["Laminar","AdsCFDefaultingCampaignDefaultingDataLoadSuccessDataReducerPlugin","AdsCFDefaultingCampaignUIProvider"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("Laminar").__createReducer(b("AdsCFDefaultingCampaignDefaultingDataLoadSuccessDataReducerPlugin"),b("AdsCFDefaultingCampaignUIProvider"),{})]},function(){return[]},"ADS_CF.DEFAULTING_DATA_LOAD_SUCCESS");e.exports=a}),null); __d("AdsCFDefaultingCampaignDataDispatcher",["AdsCFDefaultingCampaignDefaultingDataEmptyDataAction","AdsCFDefaultingCampaignDefaultingDataLoadFailedDataAction","AdsCFDefaultingCampaignDefaultingDataLoadSuccessDataAction","AdsCFDefaultingDataLoader","promiseDone"],(function(a,b,c,d,e,f){"use strict";a={loadMatchinggCampaignForAccount:function(a,c,d){b("promiseDone")(b("AdsCFDefaultingDataLoader").loadAllMatchingCampaignForAccount(a,c,d).then(function(a){return a&&a.data[0]?b("AdsCFDefaultingCampaignDefaultingDataLoadSuccessDataAction").dispatch({data:a.data[0]},{line:"36",module:"AdsCFDefaultingCampaignDataDispatcher.js"}):b("AdsCFDefaultingCampaignDefaultingDataEmptyDataAction").dispatch({},{line:"39",module:"AdsCFDefaultingCampaignDataDispatcher.js"})},function(a){return b("AdsCFDefaultingCampaignDefaultingDataLoadFailedDataAction").dispatch({error:a},{line:"42",module:"AdsCFDefaultingCampaignDataDispatcher.js"})}))}};e.exports=a}),null); __d("AdsCFDefaultingCampaignDefaultingDataLoadSuccessDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"ADS_CF.DEFAULTING_DATA_LOAD_SUCCESS"}}),null); __d("AdsCFDefaultingCampaignDataStore",["AdsAPICampaignGroupRecordUtils","AdsCFCampaignGroupSelectDataActionFlux","AdsCFDefaultingCampaignDataDispatcher","AdsCFDefaultingCampaignDefaultingDataLoadSuccessDataActionFlux","AdsCFKpiObjectiveChangeDataActionFlux","AdsCFObjectiveChangeDataActionFlux","AdsDataAtom","AdsSelectorUtils","FluxLoadObjectStore","LoadObject","adsCFCampaignGroupRecordSelector","adsCFGetAccountAPIState_HACK"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.__load=function(a){var c=b("adsCFGetAccountAPIState_HACK")().account_id,d=b("adsCFGetAccountAPIState_HACK")().timezone_id;b("AdsCFDefaultingCampaignDataDispatcher").loadMatchinggCampaignForAccount(c,a,d)};d.reduce=function(a,c){c=c.action;switch(c.type){case b("AdsCFDefaultingCampaignDefaultingDataLoadSuccessDataActionFlux").actionType:return a.set(c.data.campaign.objective,b("LoadObject").withValue(c.data));case b("AdsCFCampaignGroupSelectDataActionFlux").actionType:case b("AdsCFKpiObjectiveChangeDataActionFlux").actionType:case b("AdsCFObjectiveChangeDataActionFlux").actionType:b("AdsDataAtom").waitFor(b("AdsSelectorUtils").getStoreDispatchTokens([b("adsCFCampaignGroupRecordSelector")]));c=b("AdsAPICampaignGroupRecordUtils").getObjective(b("adsCFCampaignGroupRecordSelector")());this.__load(c);return a.set(c,b("LoadObject").empty().loading())}return a};return c}(b("FluxLoadObjectStore"));a.__moduleID=e.id;e.exports=new a(b("AdsDataAtom"))}),null); __d("AdsCFDefaultingCampaignUtils",["AdsAPICampaignPaths","AdsAPICampaignRecord","AdsCFCampaignUtils","AdsPlacementAPISpecReaderUtils","AdsPlacementAPISpecWriterUtils"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=[b("AdsAPICampaignPaths").PROMOTED_OBJECT.CUSTOM_EVENT_TYPE],h=[b("AdsAPICampaignPaths").OPTIMIZATION_GOAL];a={overwriteWithLastUsedDefaults:function(a,c){var d=b("AdsPlacementAPISpecReaderUtils").convertTargetingSpecToPlacementSpec(c.targeting);d=b("AdsPlacementAPISpecWriterUtils").setCampaignPlacement(a,d);var e=b("AdsCFCampaignUtils").overwriteDelivery(d,new(b("AdsAPICampaignRecord"))(c));g.forEach(function(a){e=e.deleteIn(a)});h.forEach(function(b){e=e.setIn(b,a.getIn(b))});return b("AdsCFCampaignUtils").processCampaignFromAPI(e)}};e.exports=a}),null); __d("AdsCFExistingPagePostSetPageIdDataAction",["Laminar","ifRequired"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("ifRequired")("AdsCFAdgroupExistingPagePostSetPageIdReducerPlugin",function(a){return b("ifRequired")("AdsCFAdgroupDataProvider",function(c){return b("Laminar").__createReducer(a,c,{})})})]},function(){return[]},"ADS_CF_EXISTING_PAGE_POST_SET_PAGE_ID");e.exports=a}),null); __d("AdsCFObjectiveSuggestionsChangeObjectiveDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"ADS_CF_OBJECTIVE_SUGGESTIONS_CHANGE_OBJECTIVE"}}),null); __d("AdsCFPrefillCampaignPrefillFromSearchableEntryDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"ADS_CF_PREFILL_CAMPAIGN_PREFILL_FROM_SEARCHABLE_ENTRY"}}),null); __d("AdsCFXCampaignxHandlePrefillByCombinedStoreAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"CF.CAMPAIGNX.HANDLE_PREFILL_BY_COMBINED_STORE");e.exports=a}),null); __d("AdsCFXCampaignxSelectByCombinedStoreAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"CF.CAMPAIGNX.SELECT_BY_COMBINED_STORE");e.exports=a}),null); __d("AdsCFXPlaceOrderCheckoutPaymentInfoCompletedDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"CF.PLACE_ORDER.CHECKOUT_PAYMENT_INFO_COMPLETED"}}),null); __d("AdsReachFrequencyDestinationUtils",["AdsAPIObjectives","immutable"],(function(a,b,c,d,e,f){"use strict";var g=b("immutable").Set([b("AdsAPIObjectives").REACH,b("AdsAPIObjectives").BRAND_AWARENESS,b("AdsAPIObjectives").POST_ENGAGEMENT,b("AdsAPIObjectives").VIDEO_VIEWS,b("AdsAPIObjectives").LINK_CLICKS,b("AdsAPIObjectives").CONVERSIONS]),h=b("immutable").Set([b("AdsAPIObjectives").APP_INSTALLS,b("AdsAPIObjectives").MOBILE_APP_INSTALLS]),i=b("immutable").Set([b("AdsAPIObjectives").REACH]);a={isDestinationPage:function(a){return g.has(a)},isDestinationApp:function(a){return h.has(a)},isDestinationPromotedObjectPage:function(a){return i.has(a)},getFacebookPageID:function(a,c){return this.isDestinationPage(b("AdsAPIObjectives"))?a.destinationID:null},getAppID:function(a,b){return this.isDestinationApp(b)?a.destinationID:null}};e.exports=a}),null); __d("AdsReachFrequencyFlowChangeDestinationActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"AdsReachFrequencyFlow.CHANGE_DESTINATION"}}),null); __d("AdsReachFrequencyFlowImportPredictionActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"AdsReachFrequencyFlow.IMPORT_PREDICTION"}}),null); __d("AdsReachFrequencyPromiseUtils",["AdsLoadStateUtils_LEGACY","AdsPredictionObjectStore","AdsPredictionProvider","adsStorePromiseAsyncGetForSyncStore","promiseStoreGet"],(function(a,b,c,d,e,f){"use strict";var g=b("AdsPredictionProvider").toFluxStore();a={promisePrediction:function(a){return b("adsStorePromiseAsyncGetForSyncStore")(g,function(){return b("AdsLoadStateUtils_LEGACY").fromLoadObjectTreatEmptyAsLoading(g.getState().get(a))})},promisePredictions:function(a){return b("promiseStoreGet").all(b("AdsPredictionObjectStore"),function(){return b("AdsPredictionObjectStore").getAll(a)})}};e.exports=a}),null); __d("adsCFGetCampaignDataStoreState_HACK",["AdsCFCampaignDataProvider","AdsDataAtom"],(function(a,b,c,d,e,f){"use strict";var g=b("AdsCFCampaignDataProvider").toFluxStore();e.exports=function(){b("AdsDataAtom").isDispatching()&&b("AdsDataAtom").waitFor([g.getDispatchToken()]);return g.getState()}}),null); __d("adsCFCampaignCreationReducer",["invariant","AdsAccountStore","AdsAPICampaignGroupPaths","AdsAPICampaignPaths","AdsAPICampaignRecord","AdsAPIObjectives","AdsAPIOptimizationGoals","AdsBuyingTypes","AdsCampaignCombinedStore","AdsCFActiveCampaignIDStore","AdsCFCampaignCreationMode","AdsCFCampaignDataStateUtils","AdsCFCampaignEditorContext","AdsCFCampaignGroupCampaignSelectAttemptDataActionFlux","AdsCFCampaignSelectDataActionFlux","AdsCFCampaignStateUtils","AdsCFCampaignUtils","AdsCFDefaultingCampaignDataStore","AdsCFDefaultingCampaignUIProvider","AdsCFDefaultingCampaignUtils","AdsCFExistingPagePostSetPageIdDataAction","AdsCFNavigationWizardPageShownDataActionFlux","AdsCFObjectiveSuggestionsChangeObjectiveDataActionFlux","AdsCFPrefillCampaignPrefillDataActionFlux","AdsCFPrefillCampaignPrefillFromSearchableEntryDataActionFlux","AdsCFReachFrequencyUtils","AdsCFSavedStateSyncRestoreStateDataActionFlux","AdsCFSelectNewCampaignActionFlux","AdsCFXCampaignxHandlePrefillByCombinedStoreAction","AdsCFXCampaignxHandlePrefillByCombinedStoreActionFlux","AdsCFXCampaignxSelectByCombinedStoreAction","AdsCFXCampaignxSelectByCombinedStoreActionFlux","AdsCFXCampaignxSetFromSingleToExistingDataActionFlux","AdsCFXPlaceOrderCheckoutPaymentInfoCompletedDataActionFlux","AdsDataAtom","AdsLandingPageViewsUtils","AdsMutators","AdsPETableObjectDataBatchLoadedActionFlux","AdsReachFrequencyDestinationUtils","AdsReachFrequencyFlowChangeDestinationActionFlux","AdsReachFrequencyFlowImportPredictionActionFlux","AdsReachFrequencyFlowInitExistingAction","AdsReachFrequencyPromiseUtils","AdsSelectorUtils","AdsUEditorCampaignGroupBulkSelectors","LoadObject","adsCFActiveCampaignIDSelector","adsCFCampaignCreationModeSelector","adsCFCampaignGroupRecordSelector","adsCFGetAccountAPIState_HACK","adsCFGetActiveCampaignIDState_HACK","adsCFGetCampaignDataStoreState_HACK","adsCFSelectedObjectiveSelector","adsGetUniformValueSelector","isEmpty","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h=b("AdsCFDefaultingCampaignUIProvider").toFluxStore(),i=b("AdsMutators").mutateEach,j=b("AdsAPICampaignRecord").getSpec().targeting;function k(a,c){c===void 0&&(c=!1);if(b("AdsCFCampaignUtils").isNewID(a))return;b("AdsDataAtom").waitFor([b("AdsCampaignCombinedStore").getDispatchToken()]);var d=b("AdsCampaignCombinedStore").get(a).getValue();d&&(c?b("AdsDataAtom").addPostDispatchCallback(function(){b("AdsCFXCampaignxHandlePrefillByCombinedStoreAction").dispatch({campaignID:a,fromView:!0},{line:"92",module:"adsCFCampaignCreationReducer.js"})}):b("AdsDataAtom").addPostDispatchCallback(function(){b("AdsCFXCampaignxSelectByCombinedStoreAction").dispatch({campaignID:a,fromView:!0},{line:"99",module:"adsCFCampaignCreationReducer.js"})}))}function l(a){var c=b("adsCFGetActiveCampaignIDState_HACK")().ids.filter(function(b){return a.has(b)}).first();b("AdsDataAtom").addPostDispatchCallback(function(){return b("AdsCFReachFrequencyUtils").maybeInitReachFrequency(b("adsCFCampaignGroupRecordSelector")(),a.get(c).getValueEnforcing())})}function m(a,c){__p&&__p();if(b("AdsCFCampaignUtils").isNewID(a))return;var d=c.get(a).getValueEnforcing();c=d.rf_prediction_id;if(!c)return;b("AdsDataAtom").waitFor([b("AdsAccountStore").getDispatchToken()]);var e=b("AdsAccountStore").getSelectedAccount_LEGACY();b("promiseDone")(b("AdsReachFrequencyPromiseUtils").promisePrediction(c),function(a){b("AdsReachFrequencyFlowInitExistingAction").dispatch({accountInfo:e,campaign:d.toJS(),campaignGroupID:d.campaign_id,campaignID:d.id,objective:a.objective_name,prediction:a,isMidCampaignEdit:!1},{line:"139",module:"adsCFCampaignCreationReducer.js"}),b("AdsCFExistingPagePostSetPageIdDataAction").dispatch({pageID:a.destination_id},{line:"150",module:"adsCFCampaignCreationReducer.js"})})}function n(a){return a.timezone_offset_hours_utc}function o(){b("AdsDataAtom").waitFor(b("AdsSelectorUtils").getStoreDispatchTokens([b("adsCFSelectedObjectiveSelector")]));var a=b("adsCFSelectedObjectiveSelector")();return a===b("AdsAPIObjectives").PRODUCT_CATALOG_SALES}function p(){b("AdsDataAtom").waitFor(b("AdsSelectorUtils").getStoreDispatchTokens([b("adsCFSelectedObjectiveSelector")]));var a=b("adsCFSelectedObjectiveSelector")();return a===b("AdsAPIObjectives").STORE_VISITS}function q(a){b("AdsDataAtom").waitFor([b("AdsAccountStore").getDispatchToken()].concat(b("AdsSelectorUtils").getStoreDispatchTokens([b("adsCFSelectedObjectiveSelector")])));var c=b("adsCFSelectedObjectiveSelector")();a=a.optimization_goal;if(c!==b("AdsAPIObjectives").LINK_CLICKS||a!==b("AdsAPIOptimizationGoals").LANDING_PAGE_VIEWS)return!1;c=b("AdsAccountStore").getSelectedAccount().getValue();return b("AdsLandingPageViewsUtils").shouldAlwaysUseDefault(c)?!0:!1}function r(){return!0}function s(a){return a.optimization_goal===b("AdsAPIOptimizationGoals").BRAND_AWARENESS||a.optimization_goal===b("AdsAPIOptimizationGoals").REACH}function t(a){b("AdsDataAtom").waitFor(b("AdsSelectorUtils").getStoreDispatchTokens([b("adsCFCampaignGroupRecordSelector")]));var c=b("adsCFCampaignGroupRecordSelector")();return!!a.rf_prediction_id&&c.buying_type===b("AdsBuyingTypes").AUCTION?!0:!1}function a(a,c){__p&&__p();switch(c.type){case b("AdsCFCampaignGroupCampaignSelectAttemptDataActionFlux").actionType:k(c.campaignID);return a.set(c.campaignID,b("LoadObject").withValue(new(b("AdsAPICampaignRecord"))({id:c.campaignID,name:c.name,targeting:{}})).loading());case b("AdsPETableObjectDataBatchLoadedActionFlux").actionType:if(c.level==="campaign"){var d=b("adsCFGetActiveCampaignIDState_HACK")().ids.filter(function(b){return a.has(b)}).first();k(d)}return a;case"ADS_CM_CAMPAIGNS_LOADED":d=b("adsCFGetActiveCampaignIDState_HACK")().ids.filter(function(b){return a.has(b)}).first();k(d);return a;case b("AdsCFSelectNewCampaignActionFlux").actionType:l(a);return a;case b("AdsCFXCampaignxSetFromSingleToExistingDataActionFlux").actionType:b("AdsDataAtom").waitFor(b("AdsSelectorUtils").getStoreDispatchTokens([b("adsCFCampaignCreationModeSelector")]));d=b("adsCFCampaignCreationModeSelector")().creationMode;if(d!==b("AdsCFCampaignCreationMode").USING_EXISTING)return a;b("AdsDataAtom").waitFor([b("AdsCFActiveCampaignIDStore").getDispatchToken()]);b("AdsDataAtom").waitFor([b("AdsCampaignCombinedStore").getDispatchToken()]);d=b("AdsCFCampaignStateUtils").getActiveCampaignIDs(b("AdsCFActiveCampaignIDStore").getState());d.length===1&&m(d[0],a);return a;case b("AdsCFXCampaignxSelectByCombinedStoreActionFlux").actionType:d=b("AdsCampaignCombinedStore").getRecord(c.campaignID);a=a.set(c.campaignID,d);m(c.campaignID,a);return a;case b("AdsCFXPlaceOrderCheckoutPaymentInfoCompletedDataActionFlux").actionType:b("AdsDataAtom").waitFor([b("AdsCFActiveCampaignIDStore").getDispatchToken()]);d=b("AdsCFCampaignStateUtils").getActiveCampaignIDs(b("AdsCFActiveCampaignIDStore").getState());return i(a,[d[0]],function(a){return a.setIn(b("AdsAPICampaignPaths").CHECKOUT_PAYMENT_IDS,c.checkout_payment_ids)});case b("AdsCFCampaignSelectDataActionFlux").actionType:d=b("AdsCFCampaignDataStateUtils").getCampaignRecordByCampaignGroupAndCampaignID(b("adsCFGetCampaignDataStoreState_HACK")(),c.campaignGroupID,c.campaignID);a=a.set(c.campaignID,b("LoadObject").withValue(d));m(c.campaignID,a);return a;case b("AdsCFPrefillCampaignPrefillDataActionFlux").actionType:b("AdsDataAtom").waitFor([b("AdsCFActiveCampaignIDStore").getDispatchToken()]);a=u(a,c.campaign,b("AdsCFCampaignStateUtils").getActiveCampaignIDs(b("AdsCFActiveCampaignIDStore").getState()));return a;case b("AdsCFPrefillCampaignPrefillFromSearchableEntryDataActionFlux").actionType:if(c.selectedEntry.getUniqueID()==="DEFAULT_CAMPAIGN_ID"){l(a);return a}k(c.selectedEntry.getUniqueID(),!0);return a;case b("AdsCFXCampaignxHandlePrefillByCombinedStoreActionFlux").actionType:b("AdsDataAtom").waitFor([b("AdsCFActiveCampaignIDStore").getDispatchToken()]);b("AdsDataAtom").waitFor([b("AdsCampaignCombinedStore").getDispatchToken()]);var e=b("AdsCFCampaignStateUtils").getActiveCampaignIDs(b("AdsCFActiveCampaignIDStore").getState());d=b("AdsCampaignCombinedStore").getRecord(c.campaignID).getValueEnforcing();a=u(a,b("AdsCFCampaignUtils").processCampaignFromAPI(d),e);return a;case b("AdsCFNavigationWizardPageShownDataActionFlux").actionType:if(c.pageID!=="ad_set")return a;b("AdsDataAtom").waitFor([b("AdsCFDefaultingCampaignDataStore").getDispatchToken()]);d=b("adsGetUniformValueSelector")(b("AdsUEditorCampaignGroupBulkSelectors").selectorByPath(b("AdsAPICampaignGroupPaths").OBJECTIVE),b("AdsAPIObjectives").NONE)(b("AdsCFCampaignEditorContext"));e=b("AdsCFDefaultingCampaignDataStore").getCached(d);if(!e.hasValue()||!h.getState().shouldDefaultL2Spec||h.getState().hasShownDefaults)return a;b("AdsDataAtom").waitFor([b("AdsCFActiveCampaignIDStore").getDispatchToken()]);d=b("AdsCFActiveCampaignIDStore").getState();if(!a.get(b("AdsCFCampaignStateUtils").getActiveAggregateCampaignID(d)))return a;var f=a.get(b("AdsCFCampaignStateUtils").getActiveAggregateCampaignID(d)).getValueEnforcing();if(f.rf_prediction_id)return a;e=e.getValueEnforcing();if(q(f)||r()||o()||p()||s(e)||t(e))return a;f=b("AdsCFDefaultingCampaignUtils").overwriteWithLastUsedDefaults(f,e);return a.set(b("AdsCFCampaignStateUtils").getActiveAggregateCampaignID(d),b("LoadObject").withValue(b("AdsCFCampaignUtils").resetCampaignDateTimeForRestore(f,n(b("adsCFGetAccountAPIState_HACK")()))));case b("AdsCFSavedStateSyncRestoreStateDataActionFlux").actionType:return v(a,c);case b("AdsCFObjectiveSuggestionsChangeObjectiveDataActionFlux").actionType:return a.withMutations(function(a){c.campaigns.forEach(function(c){var d=c.id;a.has(d)&&a.set(d,b("LoadObject").withValue(c))})});case b("AdsReachFrequencyFlowChangeDestinationActionFlux").actionType:b("AdsDataAtom").waitFor(b("AdsSelectorUtils").getStoreDispatchTokens([b("adsCFSelectedObjectiveSelector")]));e=b("adsCFSelectedObjectiveSelector")();return!b("AdsReachFrequencyDestinationUtils").isDestinationPromotedObjectPage(e)?a:i(a,c.ids,function(a){return a.setIn(b("AdsAPICampaignPaths").PROMOTED_OBJECT.PAGE_ID,c.destinationID)});case b("AdsReachFrequencyFlowImportPredictionActionFlux").actionType:var g=c.prediction.parsed_target_spec;return i(a,[c.campaignID],function(a){return a.setIn(b("AdsAPICampaignPaths").TARGETING.path,new j(g))})}return a}function u(a,c,d){return a.withMutations(function(a){d.forEach(function(d){var e=b("AdsCFCampaignUtils").cleanUpCampaignForAutofill(c).setIn(b("AdsAPICampaignPaths").ID,d);a.set(d,b("LoadObject").withValue(b("AdsCFCampaignUtils").resetCampaignDateTimeForRestore(e,n(b("adsCFGetAccountAPIState_HACK")()))))})})}function v(a,c){__p&&__p();c=c.appState.ad_set;if(b("isEmpty")(c))return a;b("AdsDataAtom").waitFor(b("AdsSelectorUtils").getStoreDispatchTokens([b("adsCFActiveCampaignIDSelector"),b("adsCFCampaignCreationModeSelector")]));a=c.every(function(a){return b("AdsCFCampaignUtils").isNew(a)});var d=c.every(function(a){return!b("AdsCFCampaignUtils").isNew(a)});a||d||g(0,2046);if(a){var e=b("adsCFActiveCampaignIDSelector")().ids.values();c=c.map(function(a){return a.set("id",e.next().value)})}return b("AdsCFCampaignStateUtils").createCampaignStateWithCampaigns(c.map(function(a){return b("AdsCFCampaignUtils").resetCampaignDateTimeForRestore(a,n(b("adsCFGetAccountAPIState_HACK")()))}).map(b("AdsCFCampaignUtils").processCampaignFromAPI))}e.exports=a}),null); __d("adsCFGetBuyingType_HACK",["AdsAPICampaignGroupRecordUtils","AdsDataAtom","AdsSelectorUtils","adsCFCampaignGroupRecordSelector"],(function(a,b,c,d,e,f){"use strict";e.exports=function(){b("AdsDataAtom").isDispatching()&&b("AdsDataAtom").waitFor(b("AdsSelectorUtils").getStoreDispatchTokens([b("adsCFCampaignGroupRecordSelector")]));return b("AdsAPICampaignGroupRecordUtils").getBuyingType(b("adsCFCampaignGroupRecordSelector")())}}),null); __d("adsCFCampaignDefaultSpecReducer",["AdsAPICampaignGroupRecordUtils","AdsAPICampaignRecord","AdsAPICampaignRecordUtils","AdsCFCampaignPluginResolver","AdsCFCampaignUtils","AdsCFXCampaignGroupxSetPromotedObjectDataActionFlux","AdsDataAtom","AdsMutators","AdsSelectorUtils","AdsUEditorCampaignGroupSetCatalogAndProductSetActionFlux","LoadObject","adsCFActiveCampaignIDSelector","adsCFCampaignCreationModeSelector","adsCFCampaignGroupRecordSelector","adsCFGetAccountAPIState_HACK","adsCFGetBuyingType_HACK"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("AdsCFCampaignUtils").isChangeCreationModeAction,h=b("AdsCFCampaignUtils").shouldRegenerateCampaign,i=b("AdsMutators").mutateEach,j=[b("adsCFActiveCampaignIDSelector"),b("adsCFCampaignCreationModeSelector")];function a(a,c,d,e){__p&&__p();b("AdsDataAtom").waitFor(b("AdsSelectorUtils").getStoreDispatchTokens(j));if(h(c.type)){d=l(a);return n(d,c.destSource,e)}if(g(c.type))return k(a,c.destSource,e);switch(c.type){case b("AdsCFXCampaignGroupxSetPromotedObjectDataActionFlux").actionType:case b("AdsUEditorCampaignGroupSetCatalogAndProductSetActionFlux").actionType:return n(a,c.destSource,e)}return a}function k(a,c,d){var e=b("adsCFActiveCampaignIDSelector")().ids.filter(function(c){return!a.has(c)&&b("AdsCFCampaignUtils").isNewID(c)});if(e.isEmpty())return a;var f=m(a,e);return o(f,e,c,d)}function l(a){return m(a,b("adsCFActiveCampaignIDSelector")().ids)}function m(a,c){__p&&__p();b("AdsDataAtom").waitFor(b("AdsSelectorUtils").getStoreDispatchTokens([b("adsCFCampaignGroupRecordSelector")]));var d=b("adsCFCampaignGroupRecordSelector")(),e=b("AdsAPICampaignGroupRecordUtils").isNewCampaignGroup(d),f=e?void 0:b("AdsAPICampaignGroupRecordUtils").getID(d);return a.withMutations(function(a){__p&&__p();for(var d=c,e=Array.isArray(d),g=0,d=e?d:d[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var h,i;if(e){if(g>=d.length)break;i=d[g++]}else{g=d.next();if(g.done)break;i=g.value}i=i;a.set(i,b("LoadObject").withValue(new(b("AdsAPICampaignRecord"))((h={},h.id=i,h.campaign_id=f,h))))}})}function n(a,c,d){return o(a,b("adsCFActiveCampaignIDSelector")().ids,c,d)}function o(a,c,d,e){b("AdsDataAtom").waitFor(b("AdsSelectorUtils").getStoreDispatchTokens([b("adsCFCampaignGroupRecordSelector")]));var f=b("adsCFCampaignGroupRecordSelector")(),g=b("AdsAPICampaignGroupRecordUtils").getObjective(f),h=b("AdsAPICampaignGroupRecordUtils").getPromotedObject(f),j=+f.daily_budget,k=+f.lifetime_budget;return i(a,c,function(a){var c={account:b("adsCFGetAccountAPIState_HACK")(),accountAPIState:b("adsCFGetAccountAPIState_HACK")(),budgetRec:null,buyingType:b("adsCFGetBuyingType_HACK")(),campaignGroupDailyBudget:j,campaignGroupLifetimeBudget:k,campaignGroupPromotedObject:h,destSource:d,objective:g,payloadSource:e},f=b("AdsAPICampaignRecordUtils").getPromotedObjectType(g,a);return b("AdsCFCampaignPluginResolver").resolve({objective:g,promotedObjectType:f}).mergeStaticDefaults(a,c)})}e.exports=a}),null); __d("AdsCFChangeCampaignDayPartingScheduleActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"ADS_CF.CHANGE_CAMPAIGN_DAY_PARTING_SCHEDULE"}}),null); __d("AdsCFChangeCampaignStatusActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"ADS_CF.CHANGE_CAMPAIGN_STATUS"}}),null); __d("AdsDirectDealsDealsByAdAccountLoadedDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"DIRECT_DEALS.DEALS_BY_AD_ACCOUNT_LOADED");e.exports=a}),null); __d("AdsDirectDealsDetailsLoadedDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"DIRECT_DEALS.DETAILS_LOADED");e.exports=a}),null); __d("AdsDirectDealsDataManager",["AdsAPITargetFields","AdsDirectDealsDealsByAdAccountLoadedDataAction","AdsDirectDealsDetailsLoadedDataAction","AdsGraphAPI","promiseDone"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function g(a){var b=[];a.forEach(function(a){return b.push(h(a))});return b}function h(a){__p&&__p();var c={};c.id=a.id;c.adBreaksEnabled=a.adbreaks_enabled;c.app=a.app;c.advertiser=a.advertiser;c.advertiserPageID=a.advertiserPageID;c.cpeAmount=a.cpe_amount;c.cpeCurrency=a.cpe_currency;c.endTime=a.end_time;c.lifetimeBudget=a.lifetime_budget_amount;c.budgetCurrency=a.lifetime_budget_currency;c.lifetimeImpressions=a.lifetime_impressions;c.name=a.name;c.pricedBy=a.priced_by;c.startTime=a.start_time;c.status=a.status;c.targeting=a.targeting;c.targeting[b("AdsAPITargetFields").FB_DEAL_ID]=c.id;c.photo=c.app&&c.app.logo_url;c.publisherName=a.publisher_name?a.publisher_name:"";delete c.targeting.page_types;return c}a=function(){function a(){}var c=a.prototype;c.getAvailableDeals=function(a){b("promiseDone")(b("AdsGraphAPI").get(e.id).adaccount(a).edge("direct_deals").get({limit:200,status:1}).then(function(c){b("AdsDirectDealsDealsByAdAccountLoadedDataAction").dispatch({adAccountID:a,deals:g(c.data)},{line:"91",module:"AdsDirectDealsDataManager.js"})}))};c.getDealDetails=function(a){b("promiseDone")(b("AdsGraphAPI").get(e.id).object("direct_deals",a).get().then(function(c){return b("AdsDirectDealsDetailsLoadedDataAction").dispatch({dealID:a,deal:h(c)},{line:"105",module:"AdsDirectDealsDataManager.js"})}))};return a}();e.exports=new a()}),null); __d("AdsDirectDealsDealsByAdAccountLoadedDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"DIRECT_DEALS.DEALS_BY_AD_ACCOUNT_LOADED"}}),null); __d("AdsCFDirectDealDataStore",["invariant","AdsAudienceDirectConfig","AdsDataAtom","AdsDirectDealsDataManager","AdsDirectDealsDealsByAdAccountLoadedDataActionFlux","FluxLoadObjectStore","adsCreateStoreThunkSelector"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();c=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;g95}function c(a,b){return a.winnerID===b}e.exports={getGraphDataForKPIFromMetricData:a,isConfidenceOverThreshold:b,isWinnerVariantID:c}}),null); __d("AdsCommonSplitTestStringUtils",["ads-lib-formatters"],(function(a,b,c,d,e,f){"use strict";var g=b("ads-lib-formatters").createIntlPercentFormatter(0);function a(){return g(95/100)}e.exports={getFormattedConfidenceThreshold:a}}),null); __d("AdsTargetingReachEstimateConstant",["fbt"],(function(a,b,c,d,e,f,g){"use strict";e.exports={ERROR_CONTENT:g._("Data is not available."),ERROR_SIZE:-1,LOAD_ERROR_SIZE:-10,AM_ERROR_CONTENT:g._("Not available"),AM_ERROR_CONTENT_NEW:g._("Unavailable"),LOW_REACH_SIZE:1e3,AM_LOW_REACH_CONTENT:g._("Fewer than 1000")}}),null); __d("AdsSplitTestStringUtils",["fbt","invariant","AdsCommonSplitTestReportingUtils","AdsCommonSplitTestStringUtils","AdsObjectTypes","AdsOptimizationGoalStrings","AdsOptimizationUtils","AdsPlacementAPISpecReaderUtils","AdsReportPublisherPlatformType","AdsSplitTestConfigUtils","AdsSplitTestPowerConstants","AdsSplitTestStrings","AdsSplitTestVariable","AdsTargetingReachEstimateConstant","DateTime","Timezone","ads-lib-formatters","adsAccountGK","adsCampaignGenerateNameFromCampaign","immutable"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();var i=b("AdsTargetingReachEstimateConstant").AM_ERROR_CONTENT,j=b("AdsTargetingReachEstimateConstant").AM_LOW_REACH_CONTENT,k=b("AdsTargetingReachEstimateConstant").ERROR_SIZE,l=b("AdsTargetingReachEstimateConstant").LOW_REACH_SIZE;b("immutable").List;var m=b("ads-lib-formatters").createIntlLongNumberFormatter(0),n=b("ads-lib-formatters").createIntlPercentFormatter(0);function a(a){var c=n(Math.min(Math.max(a,b("AdsSplitTestPowerConstants").MIN_POWER),b("AdsSplitTestPowerConstants").MAX_POWER));if(ab("AdsSplitTestPowerConstants").MAX_POWER)return g._(">{percent power}",[g._param("percent power",c)]);else return c}function c(a){__p&&__p();var c=a.campaign,d=a.variable;a=a.isInCostCapPublicTest;var e=b("AdsSplitTestConfigUtils").getSplitTestConfigSplitsIndex(c);e=g._("Ad Set {version}",[g._param("version",b("AdsSplitTestStrings").getLetterForIndex(e||0))]);switch(d){case b("AdsSplitTestVariable").TARGETING:d=((d=c.saved_audience)==null?void 0:d.name)||b("adsCampaignGenerateNameFromCampaign")(c);return!d?e:g._("{base string} - {saved audience name}",[g._param("base string",e),g._param("saved audience name",d)]);case b("AdsSplitTestVariable").OPTIMIZATION:d=b("AdsOptimizationUtils").getBidStrategyLabel(a,!!c.is_autobid,!!c.is_average_price_pacing,c.bid_strategy);return g._("{base string} - {optimization goal title} - {bidding type}",[g._param("base string",e),g._param("optimization goal title",b("AdsOptimizationGoalStrings").getTitle(c.optimization_goal)),g._param("bidding type",d)]);case b("AdsSplitTestVariable").PLACEMENT:a=b("AdsPlacementAPISpecReaderUtils").convertCampaignRecordToPlacementSpec(c);d=g._("Automatic");a&&a.publisher_platforms&&(d=a.publisher_platforms.map(function(a){return b("AdsReportPublisherPlatformType")[a]}).join(", "));return g._("{base string} - {placement name}",[g._param("base string",e),g._param("placement name",d)]);default:return e}}function d(a,b){b=b.findIndex(function(b){return b.id===a.id});return o(b)}function f(a,b){b=b.findIndex(function(b){return b.id===a.id});return p(b)}function o(a){a>=0||h(0,2571);return g._("Ad {alphabetical index, i.e. 'A', 'B', etc}",[g._param("alphabetical index, i.e. 'A', 'B', etc",b("AdsSplitTestStrings").getLetterForIndex(a))])}function p(a){a>=0||h(0,2571);return g._("{alphabetical index, i.e. 'A', 'B', etc} -",[g._param("alphabetical index, i.e. 'A', 'B', etc",b("AdsSplitTestStrings").getLetterForIndex(a))])}function q(a){return g._({"CHANGE_BUDGET":"Want to change budget?","CHANGE_SCHEDULE":"Want to change schedule?"},[g._enum(a,{CHANGE_BUDGET:"budget",CHANGE_SCHEDULE:"schedule"})])}function r(a){a===void 0&&(a=0);return a<=l?a===k?i:j:m(a)}function s(a){switch(a){case"campaign":return g._("Winning Campaign Found");case"ad_set":return g._("Winning Ad Set Found");case"ad":return g._("Winning Ad Found");default:h(0,16980,a)}}function t(a){switch(a){case"campaign":return g._("No Winning Campaign Found");case"ad_set":return g._("No Winning Ad Set Found");case"ad":return g._("No Winning Ad Found");default:h(0,16980,a)}}function u(a){return b("AdsCommonSplitTestReportingUtils").isConfidenceOverThreshold(a)?g._("If you ran this test again, the chance of getting the same winner is greater than {confidence threshold}.",[g._param("confidence threshold",b("AdsCommonSplitTestStringUtils").getFormattedConfidenceThreshold())]):g._("There's a {confidence percentage} chance you'd get the same winner if you ran this test again.",[g._param("confidence percentage",n(a))])}function v(a){switch(a){case"ad_set":return g._("Run Winning Ad Set");case"ad":return g._("Run Winning Ad");default:h(0,16980,a)}}function w(a){return a.map(function(a){return Math.round(a*100/1e4)}).join("/")}function x(a,b){b=b.findIndex(function(b){return b===a});return y(b)}function y(a){a>=0||h(0,2570);return g._("Ad Set for Ad {version, i.e. 'A', 'B', etc}",[g._param("version, i.e. 'A', 'B', etc",b("AdsSplitTestStrings").getLetterForIndex(a))])}function z(a){switch(a){case b("AdsObjectTypes").CAMPAIGN:return g._("Enter an ad set name");case b("AdsObjectTypes").ADGROUP:return g._("Enter an ad name");default:return null}}function A(a){return a?b("AdsSplitTestStrings").testVariables[a].label:"\u2014"}function B(a,b){return g._("{object type and object version} {object name}",[g._param("object type and object version",a),g._param("object name",b)])}function C(a,c,d){c=typeof c==="number"?b("AdsSplitTestStrings").getLetterForIndex(c).toString():"";return g._({"CAMPAIGN_GROUP":"Campaign{version name}{secondary version name}:","CAMPAIGN":"Ad Set{version name}{secondary version name}:","ADGROUP":"Ad{version name}{secondary version name}:"},[g._enum(a,{CAMPAIGN_GROUP:"Campaign",CAMPAIGN:"Ad Set",ADGROUP:"Ad"}),g._param("version name",c!==""?" "+c:null),g._param("secondary version name",d!=null?""+(d+1):null)])}function D(a,c){switch(a){case b("AdsSplitTestVariable").CREATIVE:return c===2?g._("When you finish setting up Ad A, those settings will be copied over to Ad B. From there, you can make any necessary edits to your creative, then publish your test."):g._("When you finish setting up your first ad, those settings will be copied over to the other ads in your test. From there, you can make any necessary edits to your creative, then publish your test.");case b("AdsSplitTestVariable").PLACEMENT:return g._("Your campaign was split evenly into 2 ad sets. Ad Set A will use automatic placements. Choose which placements you'd like for Ad Set B, finish setting up your campaign, then publish your test. You'll be able to see your test progress in Ads Manager.");case b("AdsSplitTestVariable").OPTIMIZATION:return g._("Your campaign was split evenly into 2 ad sets. Ad Set A will optimize for landing page views and Ad Set B will optimize for link clicks. When you publish your test, you'll be able to see your test progress in Ads Manager.");case b("AdsSplitTestVariable").TARGETING:return g._("Your campaign was split evenly into {number of ad sets} ad sets using the audiences you defined. Finish setting up your campaign, then publish your test. You'll be able to see your test progress in Ads Manager.",[g._param("number of ad sets",c)]);default:return""}}function E(){return g._("We recommend using a budget that gives you a power of at least {recommended power, i.e. 80\u0025} to improve your chances of a successful test.",[g._param("recommended power, i.e. 80%",n(b("AdsSplitTestPowerConstants").RECOMMENDED_POWER))])}function F(){return b("AdsSplitTestStrings").CREATE_SPLIT_TEST}function G(){return g._("Test ad sets against each other to understand which strategies give you the best result. Your potential reach will be divided among your ad sets for accurate split test results.")}function H(a,c){return b("DateTime").fromISOString(a.observation_end_time,b("Timezone").UTC).addDays(28).startOfDay().isSameOrAfter(b("DateTime").now(b("Timezone").UTC).startOfDay())&&b("adsAccountGK")._(c,"byu9TZNcq")?g._("We'll continue to update results for {number of days} days after your test ends. Results may change during this time.",[g._param("number of days",28)]):null}e.exports={formatTestPower:a,getActionBlockedDialogTitleText:q,getConfidenceMessaging:u,getCreativeSplitTestNameFieldLabelForAdgroupWithIndex:p,getCreativeSplitTestNameForAdgroup:d,getCreativeSplitTestNameForAdgroupWithIndex:o,getDefaultCampaignName:c,getDefaultCampaignNameForCreativeSplitTest:x,getFormattedTestVariable:A,getInputPlaceholder:z,getNoWinnerFoundHeader:t,getPowerRecommendationSentence:E,getReachLabel:r,getResultsMayChangeDescription:H,getRunWinnerButtonText:v,getSplitPercentsString:w,getSplitTestSummaryObjectHeader:B,getSplitTestSummaryObjectTitle:C,getSplitTestToggleLabel:F,getSplitTestTooltipHelpTextString:G,getUpsellConfirmationMessage:D,getWinnerFoundHeader:s,getCreativeSplitTestNameFieldLabelForAdgroup:f}}),null); __d("AdsUEditorCampaignSetSavedAudienceActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"ADS_CAMPAIGN_EDITOR_SET_SAVED_AUDIENCE"}}),null); __d("adsCFNullableCampaignGroupRecordSelector_DO_NOT_USE",["AdsCFActiveCampaignGroupIDProvider","AdsCFCampaignGroupRecordProvider","AdsStoreUtils","adsCreateSelector"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=b("AdsCFActiveCampaignGroupIDProvider").toFluxStore();c=b("AdsCFCampaignGroupRecordProvider").toFluxStore();d=b("adsCreateSelector")([b("AdsStoreUtils").toSelector(c),b("AdsStoreUtils").toSelector(a)],function(a,b){b=b.first();if(b==null)return null;a=a.get(b);return a==null||a.hasValue()!==!0?null:a.getValueEnforcing()},{name:e.id+".selector"});e.exports=d}),null); __d("adsCFIsCreativeSplitTestSelector",["AdsSplitTestUtils","adsCFNullableCampaignGroupRecordSelector_DO_NOT_USE","adsCreateSelector"],(function(a,b,c,d,e,f){"use strict";a=b("adsCreateSelector")([b("adsCFNullableCampaignGroupRecordSelector_DO_NOT_USE")],function(a){return a==null?!1:b("AdsSplitTestUtils").isCreativeSplitTest(a)},{name:e.id+".adsCFIsCreativeSplitTestSelector"});e.exports=a}),null); __d("adsCFCampaignSplitTestNameReducer",["AdsAPICampaignPaths","AdsCampaignPlacementAddDataActionFlux","AdsCampaignPlacementRemoveDataActionFlux","AdsCampaignPlacementResetDataActionFlux","AdsCampaignSetDevicePlatformDataActionFlux","AdsCFCampaignGroupToggleSplitTestOnDataActionFlux","AdsCFPrefillCampaignPrefillDataActionFlux","AdsCFSplitTestTransitionToCreativeTestDataActionFlux","AdsCFXCampaignxAddVariantDataActionFlux","AdsCFXCampaignxPromotedObjectSetAppDataActionFlux","AdsCFXCampaignxPromotedObjectSetOfflineEventSetOptimizationFieldsDataActionFlux","AdsCFXCampaignxRemoveVariantsDataActionFlux","AdsCFXCampaignxSetDeliveryDataActionFlux","AdsCFXCampaignxSetIsAutobidDataActionFlux","AdsCFXCampaignxSetOptimizationGoalDataActionFlux","AdsCostStrategyUtils","AdsDataAtom","AdsMutators","AdsOptimizationUtils","AdsPlacementViewExpandAdvancedOptionDeviceDataActionFlux","AdsPlacementViewSwitchToManualDataActionFlux","AdsSavedAudienceProvider","AdsSelectorUtils","AdsSplitTestStringUtils","AdsUEditorCampaignGroupSetSplitTestVariableActionFlux","AdsUEditorCampaignSelectAppPromotedObjectTypeDataActionFlux","AdsUEditorCampaignSelectOfflinePromotedObjectTypeDataActionFlux","AdsUEditorCampaignSelectPixelPromotedObjectTypeDataActionFlux","AdsUEditorCampaignSetOfflineFromPageSetPromotedObjectTypeDataActionFlux","AdsUEditorCampaignSetPageSetFromOfflinePromotedObjectTypeDataActionFlux","AdsUEditorCampaignSetSavedAudienceActionFlux","AdsUEditorHostIDs","AdsUEditorUtils","adsCFActiveCampaignIDSelector","adsCFCampaignGroupRecordSelector","adsCFIsCreativeSplitTestSelector","adsDeliveryCostCapToggleQESelector","adsUEditorAccountSelector_LEGACY"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("AdsMutators").mutateEach,h=b("AdsSavedAudienceProvider").toFluxStore(),i=[b("adsCFActiveCampaignIDSelector"),b("adsUEditorAccountSelector_LEGACY"),b("adsCFCampaignGroupRecordSelector"),b("adsCFIsCreativeSplitTestSelector"),b("adsDeliveryCostCapToggleQESelector")];function j(a){var c=b("adsCFActiveCampaignIDSelector")().ids.toArray();return c.slice(c.length-a)}function k(a,c,d){var e=b("adsCFActiveCampaignIDSelector")().ids.toArray();return g(a,c,function(a){var c=d?"":b("AdsSplitTestStringUtils").getDefaultCampaignNameForCreativeSplitTest(a.id,e);return a.setIn(b("AdsAPICampaignPaths").NAME,c.toString())})}function l(a,c,d){var e=b("adsCFCampaignGroupRecordSelector")();e=e.split_test_config;if(!e)return a;var f=e.test_variable;e=b("adsDeliveryCostCapToggleQESelector")();var h=b("AdsOptimizationUtils").canSeeNewCostCapUI(e,b("AdsCostStrategyUtils").COST_CAP_EVENT_SOURCE.SPLIT_TEST);return g(a,c,function(a){return a.set("name",d?"":b("AdsSplitTestStringUtils").getDefaultCampaignName({campaign:a,variable:f,isInCostCapPublicTest:h}).toString())})}function m(a,c,d){if(b("adsCFIsCreativeSplitTestSelector")())return k(a,c,d);else return l(a,c,d)}function a(a,c){__p&&__p();a=a;if(!b("AdsUEditorUtils").shouldHostHandleAction(c,b("AdsUEditorHostIDs").CREATION))return a;b("AdsDataAtom").waitFor([].concat(b("AdsSelectorUtils").getStoreDispatchTokens(i),[h.getDispatchToken()]));var d=a.keySeq().toArray();d&&h.hasChanged()&&(a=m(a,d,!1));d=b("adsCFActiveCampaignIDSelector")().ids.toArray();switch(c.type){case b("AdsCampaignPlacementResetDataActionFlux").actionType:case b("AdsCampaignSetDevicePlatformDataActionFlux").actionType:case b("AdsCFXCampaignxPromotedObjectSetAppDataActionFlux").actionType:case b("AdsCFXCampaignxPromotedObjectSetOfflineEventSetOptimizationFieldsDataActionFlux").actionType:case b("AdsCFSplitTestTransitionToCreativeTestDataActionFlux").actionType:case b("AdsPlacementViewExpandAdvancedOptionDeviceDataActionFlux").actionType:case b("AdsPlacementViewSwitchToManualDataActionFlux").actionType:case b("AdsUEditorCampaignSelectAppPromotedObjectTypeDataActionFlux").actionType:case b("AdsUEditorCampaignSelectPixelPromotedObjectTypeDataActionFlux").actionType:case b("AdsUEditorCampaignSelectOfflinePromotedObjectTypeDataActionFlux").actionType:case b("AdsUEditorCampaignSetOfflineFromPageSetPromotedObjectTypeDataActionFlux").actionType:case b("AdsUEditorCampaignSetPageSetFromOfflinePromotedObjectTypeDataActionFlux").actionType:case b("AdsCFPrefillCampaignPrefillDataActionFlux").actionType:return m(a,d,!1);case b("AdsCFCampaignGroupToggleSplitTestOnDataActionFlux").actionType:return m(a,d,c.isQuickCreate);case b("AdsUEditorCampaignGroupSetSplitTestVariableActionFlux").actionType:return!c.isQuickCreate?m(a,d,c.isQuickCreate):a;case b("AdsCFXCampaignxAddVariantDataActionFlux").actionType:return m(a,j(c.count),c.isQuickCreate);case b("AdsCFXCampaignxRemoveVariantsDataActionFlux").actionType:return!c.isQuickCreate?m(a,d,c.isQuickCreate):a;case b("AdsUEditorCampaignSetSavedAudienceActionFlux").actionType:return m(a,c.campaignIDs,!1);case b("AdsCampaignPlacementAddDataActionFlux").actionType:case b("AdsCampaignPlacementRemoveDataActionFlux").actionType:case b("AdsCFXCampaignxSetDeliveryDataActionFlux").actionType:case b("AdsCFXCampaignxSetIsAutobidDataActionFlux").actionType:case b("AdsCFXCampaignxSetOptimizationGoalDataActionFlux").actionType:return m(a,c.ids,!1);default:return a}}e.exports=a}),null); __d("AdsCFXCampaignGroupxSetSplitTestBudgetDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"CF.CAMPAIGN_GROUPX.SET_SPLIT_TEST_BUDGET"}}),null); __d("AdsCFXCampaignGroupxSetSplitTestScheduleDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"CF.CAMPAIGN_GROUPX.SET_SPLIT_TEST_SCHEDULE"}}),null); __d("AdsCFXCampaignGroupxSetSplitTestSplitsDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"CF.CAMPAIGN_GROUPX.SET_SPLIT_TEST_SPLITS"}}),null); __d("AdsSavedAudienceSavedAudienceUpdateBatchDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"SAVED_AUDIENCE.UPDATE_BATCH"}}),null); __d("AdsSplitTestReducerBootloadedFiles",["Promise","BootloaderResource","FBLogger","JSResource","objectValues"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g={AdsSplitTestChangeVariantCountReducerHelpers:b("JSResource")("AdsSplitTestChangeVariantCountReducerHelpers").__setRef("AdsSplitTestReducerBootloadedFiles"),AdsSplitTestToggleOnReducerHelpers:b("JSResource")("AdsSplitTestToggleOnReducerHelpers").__setRef("AdsSplitTestReducerBootloadedFiles"),AdsSplitTestConsistencyUtils:b("JSResource")("AdsSplitTestConsistencyUtils").__setRef("AdsSplitTestReducerBootloadedFiles")};a=function(){return b("Promise").all(b("objectValues")(g).map(function(a){return a.load()}))};c=function(){b("objectValues")(g).forEach(function(a){return b("BootloaderResource").read(a)});return null};d=function(c,d){var a=g[c].getModuleIfRequired();a==null&&b("FBLogger")("ads_experiments").mustfix("reducer module not pre-loaded in time",c,d);return a};e.exports={SplitTestModuleLoader:c,preloadSplitTestModules:a,getSplitTestModule:d}}),null); __d("adsCFSplitTestLastActiveCampaignIDSelector",["invariant","AdsCFCampaignCreationMode","adsCFActiveCampaignIDSelector","adsCFCampaignCreationModeSelector","adsCreateSelector"],(function(a,b,c,d,e,f,g){"use strict";a=b("adsCreateSelector")([b("adsCFActiveCampaignIDSelector"),b("adsCFCampaignCreationModeSelector")],function(a,c){var d=c.creationMode;c=c.previousCreationMode;c&&c!==b("AdsCFCampaignCreationMode").SPLIT_TESTING||g(0,1892);d===b("AdsCFCampaignCreationMode").SPLIT_TESTING||g(0,1893);return a.idsMap.get(c).last()},{name:e.id+".adsCFSplitTestLastActiveCampaignIDSelector"});e.exports=a}),null); __d("adsCFCampaignSplitTestReducer",["invariant","AdsAPICampaignPaths","AdsCampaignPlacementResetDataActionFlux","AdsCampaignSetDevicePlatformDataActionFlux","AdsCFCampaignGroupToggleSplitTestOnDataActionFlux","AdsCFChangeCampaignBudgetModeActionFlux","AdsCFPrefillCampaignPrefillDataActionFlux","AdsCFSavedStateSyncRestoreStateDataActionFlux","AdsCFSplitTestTransitionToCreativeTestDataActionFlux","AdsCFXCampaignGroupxSetPromotedObjectDataActionFlux","AdsCFXCampaignGroupxSetSplitTestBudgetDataActionFlux","AdsCFXCampaignGroupxSetSplitTestScheduleDataActionFlux","AdsCFXCampaignGroupxSetSplitTestSplitsDataActionFlux","AdsCFXCampaignxAddVariantDataActionFlux","AdsCFXCampaignxPromotedObjectSetAppDataActionFlux","AdsCFXCampaignxPromotedObjectSetOfflineEventSetOptimizationFieldsDataActionFlux","AdsCFXCampaignxRemoveVariantsDataActionFlux","AdsDataAtom","AdsMutators","AdsPlacementViewExpandAdvancedOptionDeviceDataActionFlux","AdsPlacementViewSwitchToManualDataActionFlux","AdsSavedAudienceSavedAudienceUpdateBatchDataActionFlux","AdsSelectorUtils","AdsSplitTestReducerBootloadedFiles","AdsSplitTestSitevarConfig","AdsSplitTestUtils","AdsSplitTestVariable","AdsUEditorCampaignGroupSetCatalogAndProductSetActionFlux","AdsUEditorCampaignGroupSetSplitTestVariableActionFlux","AdsUEditorCampaignSelectAppPromotedObjectTypeDataActionFlux","AdsUEditorCampaignSelectOfflinePromotedObjectTypeDataActionFlux","AdsUEditorCampaignSelectPixelPromotedObjectTypeDataActionFlux","LoadObject","adsCFActiveCampaignIDSelector","adsCFCampaignCreationModeSelector","adsCFCampaignGroupRecordSelector","adsCFSplitTestLastActiveCampaignIDSelector","adsUEditorAccountSelector_LEGACY","immutable","nullthrows"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h=b("AdsMutators").chain,i=b("AdsMutators").mutateEach,j=b("AdsSplitTestReducerBootloadedFiles").getSplitTestModule,k=[b("adsCFActiveCampaignIDSelector"),b("adsCFCampaignCreationModeSelector"),b("adsUEditorAccountSelector_LEGACY"),b("adsCFSplitTestLastActiveCampaignIDSelector"),b("adsCFCampaignGroupRecordSelector")];function l(a){var c=b("adsCFCampaignGroupRecordSelector")();c=c.split_test_config;c||g(0,635);var d=j("AdsSplitTestConsistencyUtils",e.id),f=b("adsCFActiveCampaignIDSelector")().ids.toArray();return d==null?a:d.makeCampaignsInSplitTestConsistent({campaignIDs:f,state:a,splitTestConfig:c})}function m(a,c){__p&&__p();var d=b("adsCFCampaignGroupRecordSelector")();if(((d=d.split_test_config)==null?void 0:d.test_variable)!==b("AdsSplitTestVariable").TARGETING)return a;d=b("adsCFActiveCampaignIDSelector")().ids;var e=b("immutable").Set(c.map(function(a){return a.id}));c=d.map(function(b){return a.get(b)&&a.get(b).getValueEnforcing()}).filter(function(a){return e.contains(a.saved_audience_id)}).map(function(a){return a.id});return i(a,c,function(a){return a.withMutations(function(a){a.deleteIn(b("AdsAPICampaignPaths").SAVED_AUDIENCE_ID),a.deleteIn(b("AdsAPICampaignPaths").SAVED_AUDIENCE.path),a.deleteIn(b("AdsAPICampaignPaths").BRAND_AUDIENCE_ID)})})}function n(a){switch(a.type){case b("AdsCFSplitTestTransitionToCreativeTestDataActionFlux").actionType:return a.numberOfAdgroups;default:return b("AdsSplitTestSitevarConfig").MIN_NUMBER_OF_CAMPAIGN_WITHIN_SPLIT_TEST}}function o(a,c){var d=b("nullthrows")(b("adsCFSplitTestLastActiveCampaignIDSelector")());a=a.get(d).getValueEnforcing();d=n(c);return Array(d).fill(a)}function p(a,c){var d=s(a).toArray(),e=o(a,c);d.length===e.length||g(0,637,e.length);var f=a;d.forEach(function(a,d){d=e[d].set("id",a);c.type===b("AdsCFCampaignGroupToggleSplitTestOnDataActionFlux").actionType&&(d=d.set("daily_budget",1).set("lifetime_budget",0));f=f.set(a,b("LoadObject").withValue(d))});return f}function q(a,c){__p&&__p();var d=a;if(b("AdsSplitTestUtils").hasSplitTest(b("adsCFCampaignGroupRecordSelector")()))if(c===b("AdsSplitTestVariable").CREATIVE){var e=s(a);e.size===2||g(0,638);var f=a.last().getValueEnforcing();f||g(0,639);d=e.reduce(function(a,c){return a.set(c,b("LoadObject").withValue(f.set("id",c)))},b("immutable").Map())}else if(c===b("AdsSplitTestVariable").AD_KEYWORDS){a=b("adsCFActiveCampaignIDSelector")().ids.toArray();if(a.length>1){e=a[1];d=i(d,[e],function(a){return a.deleteIn(b("AdsAPICampaignPaths").AD_KEYWORDS.path)})}}return d}function r(a,c){var d=s(a);d.size===c||g(0,640);c=b("adsCFActiveCampaignIDSelector")().ids;c=c.subtract(d).last();var e=a.get(c)&&a.get(c).getValueEnforcing();e||g(0,639);return d.reduce(function(a,c){return a.set(c,b("LoadObject").withValue(e.set("id",c)))},a)}function s(a){var c=b("adsCFActiveCampaignIDSelector")().ids;a=b("immutable").Set.fromKeys(a);return c.subtract(a)}function t(a,c){var d=b("adsCFActiveCampaignIDSelector")().ids,e=b("immutable").Set(c.map(function(a){return a.id}));d.intersect(e).size===0||g(0,641);a.filter(function(a,b){return e.has(b)}).forEach(function(a,b){return g(a.getValueEnforcing().split_test_config_splits_index!=null,"All variants of a split test must have a split test index")});return a.filterNot(function(a,b){return e.has(b)})}function a(a,c){__p&&__p();b("AdsDataAtom").waitFor(b("AdsSelectorUtils").getStoreDispatchTokens(k));switch(c.type){case b("AdsCFCampaignGroupToggleSplitTestOnDataActionFlux").actionType:case b("AdsCFSplitTestTransitionToCreativeTestDataActionFlux").actionType:return h(function(a){return p(a,c)},function(a){return l(a)})(a);case b("AdsCFXCampaignxAddVariantDataActionFlux").actionType:return l(r(a,c.count));case b("AdsUEditorCampaignGroupSetSplitTestVariableActionFlux").actionType:return l(c.isQuickCreate?a:q(a,c.variable));case b("AdsCFChangeCampaignBudgetModeActionFlux").actionType:case b("AdsCFSavedStateSyncRestoreStateDataActionFlux").actionType:case b("AdsCFXCampaignGroupxSetPromotedObjectDataActionFlux").actionType:case b("AdsCFXCampaignGroupxSetSplitTestBudgetDataActionFlux").actionType:case b("AdsCFXCampaignGroupxSetSplitTestScheduleDataActionFlux").actionType:case b("AdsCFXCampaignGroupxSetSplitTestSplitsDataActionFlux").actionType:case b("AdsCFXCampaignxPromotedObjectSetAppDataActionFlux").actionType:case b("AdsCFXCampaignxPromotedObjectSetOfflineEventSetOptimizationFieldsDataActionFlux").actionType:case b("AdsCampaignPlacementResetDataActionFlux").actionType:case b("AdsCampaignSetDevicePlatformDataActionFlux").actionType:case b("AdsPlacementViewExpandAdvancedOptionDeviceDataActionFlux").actionType:case b("AdsPlacementViewSwitchToManualDataActionFlux").actionType:case b("AdsUEditorCampaignGroupSetCatalogAndProductSetActionFlux").actionType:case b("AdsUEditorCampaignSelectAppPromotedObjectTypeDataActionFlux").actionType:case b("AdsUEditorCampaignSelectPixelPromotedObjectTypeDataActionFlux").actionType:case b("AdsUEditorCampaignSelectOfflinePromotedObjectTypeDataActionFlux").actionType:case b("AdsCFPrefillCampaignPrefillDataActionFlux").actionType:return l(a);case b("AdsCFXCampaignxRemoveVariantsDataActionFlux").actionType:return l(t(a,c.campaigns));case b("AdsSavedAudienceSavedAudienceUpdateBatchDataActionFlux").actionType:return m(a,c.savedAudiences)}return a}e.exports=a}),null); __d("AdsCFPrefillOptimizationGoalDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"ADS_CF_PREFILL_OPTIMIZATION_GOAL"}}),null); __d("adsCFDefaultCampaignPricingFieldsReducer",["AdsAPICampaignPaths","AdsAPICampaignRecordUtils","AdsAPIObjectives","AdsAppUtils","AdsBuyingTypes","AdsCampaignOptimizationPluginResolver","AdsCampaignRemoveOfflineEventPromotedObjectTypeDataActionFlux","AdsCFCampaignUtils","AdsCFOptimizationStoreUtils","AdsCFPrefillOptimizationGoalDataActionFlux","AdsCFXCampaignxPromotedObjectSetAppDataActionFlux","AdsCFXCampaignxPromotedObjectSetOfflineEventSetOptimizationFieldsDataActionFlux","AdsDataAtom","AdsMessengerPlacementUtils","AdsMutators","AdsOptimizationMutationUtils","AdsPixelViewUpdateConversionChoiceActionFlux","AdsPlacementAPISpecReaderUtils","AdsPromotedObjectTypes","AdsSelectorUtils","AdsUEditorAdgroupNavigateMessengerPromotedObjectActionFlux","AdsUEditorCampaignSetMessengerPromotedObjectTypeDataActionFlux","adsCFActiveCampaignIDSelector","adsCFGetAccountAPIState_HACK","adsCFGetBuyingType_HACK","adsCFSelectedObjectiveSelector","AdsPlacementConstants"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("AdsPlacementAPISpecReaderUtils").convertCampaignRecordToPlacementSpec,h=b("AdsMutators").mutateEach,i=b("AdsPlacementConstants").PLACEMENT_AD_SET_ACTIONS,j=[b("adsCFActiveCampaignIDSelector")];function k(a){return i.has(a)||b("AdsCFCampaignUtils").shouldRegenerateCampaign(a)||b("AdsCFCampaignUtils").shouldRegenerateCampaignPricing(a)||b("AdsCFCampaignUtils").isChangeCreationModeAction(a)||a===b("AdsCFPrefillOptimizationGoalDataActionFlux").actionType}function l(a){return h(a,b("adsCFActiveCampaignIDSelector")().ids,function(a){return a.withMutations(function(a){return a.deleteIn(b("AdsAPICampaignPaths").IS_AUTOBID).deleteIn(b("AdsAPICampaignPaths").BID_INFO.path).deleteIn(b("AdsAPICampaignPaths").BID_TYPE).deleteIn(b("AdsAPICampaignPaths").OPTIMIZATION_GOAL).deleteIn(b("AdsAPICampaignPaths").BILLING_EVENT)})})}a=function(a,c,d){__p&&__p();b("AdsDataAtom").waitFor(b("AdsSelectorUtils").getStoreDispatchTokens(j));if(!k(c.type))return a;var e=b("adsCFGetBuyingType_HACK")(),f=b("adsCFGetAccountAPIState_HACK")();return e===b("AdsBuyingTypes").RESERVED?l(a):h(a,b("adsCFActiveCampaignIDSelector")().ids,function(a){__p&&__p();if(!b("AdsCFCampaignUtils").isNew(a))return a;if(i.has(c.type)&&c.eligibilityInformation){var e=g(a);e=b("AdsMessengerPlacementUtils").isAddingMessengerThread(e,c.eligibilityInformation.spec);if(!e)return a}if(b("AdsCFCampaignUtils").isChangeCreationModeAction(c.type)&&d&&d.has(a.id))return a;b("AdsDataAtom").waitFor(b("AdsSelectorUtils").getStoreDispatchTokens([b("adsCFSelectedObjectiveSelector")]));e=b("adsCFSelectedObjectiveSelector")();if(c.type===b("AdsPixelViewUpdateConversionChoiceActionFlux").actionType&&e===b("AdsAPIObjectives").NONE)return a;var h=b("AdsAPICampaignRecordUtils").getPromotedObjectType(e,a);c.type===b("AdsCFXCampaignxPromotedObjectSetAppDataActionFlux").actionType&&(c.appID===void 0&&c.objectStoreURL===void 0?h=b("AdsAPICampaignRecordUtils").getPromotedObjectType(e,a.deleteIn(b("AdsAPICampaignPaths").PROMOTED_OBJECT.APPLICATION_ID).deleteIn(b("AdsAPICampaignPaths").PROMOTED_OBJECT.OBJECT_STORE_URL)):h=b("AdsAppUtils").isFacebookDesktopURL(c.objectStoreURL)?b("AdsPromotedObjectTypes").CANVAS_APP:b("AdsPromotedObjectTypes").MOBILE_APP);c.type===b("AdsCFXCampaignxPromotedObjectSetOfflineEventSetOptimizationFieldsDataActionFlux").actionType&&(h=b("AdsPromotedObjectTypes").OFFLINE_EVENT_SET);e===b("AdsAPIObjectives").STORE_VISITS&&c.type===b("AdsCampaignRemoveOfflineEventPromotedObjectTypeDataActionFlux").actionType&&(h=b("AdsPromotedObjectTypes").PLACE_PAGE_SET_ID);(c.type===b("AdsUEditorCampaignSetMessengerPromotedObjectTypeDataActionFlux").actionType||c.type===b("AdsUEditorAdgroupNavigateMessengerPromotedObjectActionFlux").actionType)&&(h=b("AdsPromotedObjectTypes").MESSENGER);h=b("AdsCampaignOptimizationPluginResolver").resolve({objective:e,promotedObjectType:h});var j=b("AdsCFOptimizationStoreUtils").getOptimizationGoalParam(c,a);return b("AdsOptimizationMutationUtils").resetOptimizationRelatedFields(f,a,h,e,j)})};e.exports=a}),null); __d("AdsCFCampaignReducingUtils",["AdsAccountStore","AdsAPICampaignGroupRecordUtils","AdsCampaignPlacementMutators","AdsCFCampaignDataProvider","AdsCFCampaignReadStatusStore","AdsCFCampaignStateUtils","AdsCFDirectDealDataStore","AdsDataAtom","AdsPixelConversionStore","AdsSelectorUtils","adsCFCampaignActionHandlersReducer","adsCFCampaignAsyncDefaultSpecReducer","adsCFCampaignCreationReducer","adsCFCampaignDefaultSpecReducer","adsCFCampaignDynamicAudienceReducer","adsCFCampaignGroupRecordSelector","adsCFCampaignPricingFieldsReducer","adsCFCampaignSplitTestNameReducer","adsCFCampaignSplitTestReducer","adsCFCampaignStandardReducer","adsCFDefaultCampaignPricingFieldsReducer","AdsCFCampaignStore_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";__p&&__p();c=b("AdsCFCampaignDataProvider").toFluxStore();var g=[].concat(b("adsCFCampaignGroupRecordSelector").getStores(),[b("AdsAccountStore"),c,b("AdsCFCampaignReadStatusStore"),b("AdsCFDirectDealDataStore"),b("AdsPixelConversionStore")]);function a(a,c){var d=b("AdsCFCampaignStore_DO_NOT_USE"),e=d.getDispatchToken();d=b("AdsSelectorUtils").getStoreDispatchTokens([c],a).filter(function(a){return a!==e});b("AdsDataAtom").waitFor(d)}d={reduce:function(a,c,d){__p&&__p();b("AdsDataAtom").waitFor(g.map(function(a){return a.getDispatchToken()}));var e=a;if(!b("AdsAccountStore").getSelectedAccount_LEGACY().account_id)return a;var f=h(c,d)?[b("adsCFCampaignPricingFieldsReducer"),b("adsCFDefaultCampaignPricingFieldsReducer")]:[],i=[],j=b("adsCFCampaignGroupRecordSelector")();b("AdsAPICampaignGroupRecordUtils").isReachFrequency(j)||(i=b("AdsCampaignPlacementMutators").toJS().map(function(a){return function(b,c){return a.reduce(b,{action:c})}}));i=[b("adsCFCampaignDefaultSpecReducer")].concat(i,f,[b("adsCFCampaignStandardReducer"),b("adsCFCampaignCreationReducer"),b("adsCFCampaignAsyncDefaultSpecReducer")],b("AdsAPICampaignGroupRecordUtils").hasSplitTest(j)?[b("adsCFCampaignSplitTestReducer"),b("adsCFCampaignSplitTestNameReducer")]:[],[b("adsCFCampaignDynamicAudienceReducer"),b("adsCFCampaignActionHandlersReducer")]);if(Array.isArray(c.ids)&&c.ids.length===1){f=b("AdsCFCampaignStateUtils").unpackAggregateCampaignID(c.ids[0]);f.length>1&&(c=babelHelpers["extends"]({},c,{ids:f}))}return i.reduce(function(a,b){return b(a,c,e,d)},a)},waitForAndFilterCFL2Selector:a};function h(a,c){return!(b("AdsCFCampaignReadStatusStore").getState().isReadOnly&&!b("AdsCFCampaignReadStatusStore").getWhilelistedActions().includes(a.type))}e.exports=d}),null); __d("AdsCFUnifiedLoggerInternal",["AdsCFApplicationConfig","AdsLogger","AdsLoggingUtils","AdsPEAppConfig","AdsPerfTiming","Artillery","ArtilleryInAdsInterfaces","SiteData","URI","URIInitDataUtil","isTruthy"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g="unified_logging",h="cf",i=new Set();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){var c;c=a.call(this,h,void 0,void 0,g)||this;c.$AdsCFUnifiedLoggerInternal4=!!b("URIInitDataUtil").getShowLog();c.$AdsCFUnifiedLoggerInternal5=b("URIInitDataUtil").getShowLog()==="trace";c.$AdsCFUnifiedLoggerInternal1={};c.$AdsCFUnifiedLoggerInternal2=0;c.$AdsCFUnifiedLoggerInternal3=0;return c}var d=c.prototype;d.startSession=function(){return++this.$AdsCFUnifiedLoggerInternal3};d.setDefaultData=function(a){this.$AdsCFUnifiedLoggerInternal1=a;return this};d.getDefaultData=function(){return this.$AdsCFUnifiedLoggerInternal1};d.__shouldSilenceError=function(a){return!0};d.updateDefaultData=function(a){this.$AdsCFUnifiedLoggerInternal1=babelHelpers["extends"]({},this.$AdsCFUnifiedLoggerInternal1,a);return this};d.logForAnalytics=function(c,d,e){__p&&__p();this.$AdsCFUnifiedLoggerInternal2++;c=b("isTruthy")(c)?c:"js_info";d=b("isTruthy")(d)?d:"general_info";e=babelHelpers["extends"]({},(e=e)!=null?e:{},this.getDefaultData());var f=[c,d].join("/"),g=!i.has(f);i.add(f);try{e=JSON.parse(JSON.stringify(e))}catch(a){e={}}f=b("AdsPEAppConfig").sessionID+":"+this.$AdsCFUnifiedLoggerInternal3;var h=null;b("Artillery").isEnabled()&&b("ArtilleryInAdsInterfaces").traceID!=null&&(h=b("ArtilleryInAdsInterfaces").traceID);var j=Date.now();h={actual_event_time:j,alternate_uri:b("URI").normalize(window.location.href),artillery_trace_id:h,category:c,creation_source:b("AdsCFApplicationConfig").getCreationSource(),event:d,event_index:this.$AdsCFUnifiedLoggerInternal2,is_event_first_of_type_in_session:g,js_build_revision:b("SiteData").client_revision,message:e,session_id:f,time_since_load:j-b("AdsPerfTiming").start,window_height:window.innerHeight||document.documentElement&&document.documentElement.clientHeight,window_width:window.innerWidth||document.documentElement&&document.documentElement.clientWidth,cohort:b("SiteData").pkg_cohort};this.$AdsCFUnifiedLoggerInternal4&&((this.$AdsCFUnifiedLoggerInternal5?console.groupCollapsed:emptyFunction)("LOG [CF-Banzai]",d,b("AdsLoggingUtils").getEventSummary(d,e),h),this.$AdsCFUnifiedLoggerInternal5&&(console.trace(),console.groupEnd()));a.prototype.logForAnalytics.call(this,c,d,h)};d.toggleLoggingToConsole=function(a){this.$AdsCFUnifiedLoggerInternal4=!this.$AdsCFUnifiedLoggerInternal4,this.$AdsCFUnifiedLoggerInternal5=!!a};d.isLoggingToConsole=function(){return this.$AdsCFUnifiedLoggerInternal4};d.getSessionCounter=function(){return this.$AdsCFUnifiedLoggerInternal3};return c}(b("AdsLogger"));e.exports=new a()}),null); __d("AdsCFLogger",["AdsAccountStore","AdsCFConstants","AdsCFUnifiedLoggerInternal","AdsDraftSelectionStore","Run","URIInitDataUtil","isTruthy"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g="no_db_op";function h(){return{environment:b("URIInitDataUtil").getEnvironment()||b("AdsCFConstants").Environments.DEFAULT}}var i=h(),j={};a={resetDefaultData:function(){i=h(),b("AdsCFUnifiedLoggerInternal").setDefaultData(i)},updateDefaultData:function(a){Object.assign(i,a),b("AdsCFUnifiedLoggerInternal").updateDefaultData(i)},startSession:function(){return b("AdsCFUnifiedLoggerInternal").startSession()},logOnce:function(a,b){if(j[a])return;this.log(a,b);j[a]=!0},resetLogOnceForEvent:function(a){delete j[a]},resetLogOnceForAllEvents:function(){j={}},log:function(a,c){var d=b("AdsAccountStore").getSelectedAccountID(),e=null;b("isTruthy")(d)&&(e=b("AdsDraftSelectionStore").getCached(d).getValue());d=Object.assign({},c);Object.assign(d,(c={logger_source:"AdsCFLogger"},c.draft_id=e,c));b("AdsCFUnifiedLoggerInternal").logForAnalytics(g,a,d)}};b("Run").onAfterUnload(a.resetDefaultData.bind(a));e.exports=a}),null); __d("AdsCFSpecGenerationUtils",["AdsAPICampaignGroupRecord","AdsAPICampaignGroupRecordUtils","AdsCFCampaignUtils","getByPath"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){var c,d=b("getByPath")(a,["name"])||"";d=(c={},c.bid_strategy=b("getByPath")(a,["bid_strategy"]),c.boosted_component_product=b("getByPath")(a,["boosted_component_product"]),c.buying_type=b("getByPath")(a,["buying_type"]),c.metrics_metadata=b("getByPath")(a,["metrics_metadata"]),c.name=d.replace(/\n/g," "),c.objective=b("getByPath")(a,["objective"]),c.promoted_object=b("getByPath")(a,["promoted_object"]),c.spend_cap=b("getByPath")(a,["spend_cap"]),c.split_test_config=b("getByPath")(a,["split_test_config"]),c.topline_id=b("getByPath")(a,["topline_id"]),c.id=b("getByPath")(a,["id"]),c.is_autobid=b("getByPath")(a,["is_autobid"]),c.is_average_price_pacing=b("getByPath")(a,["is_average_price_pacing"]),c.pacing_type=b("getByPath")(a,["pacing_type"]),c.daily_budget=b("getByPath")(a,["daily_budget"]),c.lifetime_budget=b("getByPath")(a,["lifetime_budget"]),c.budget_remaining=b("getByPath")(a,["budget_remaining"]),c.adlabels=b("getByPath")(a,["adlabels"]),c.special_ad_category=b("getByPath")(a,["special_ad_category"]),c.smart_promotion_type=b("getByPath")(a,["smart_promotion_type"]),c);if(b("getByPath")(a,["checkout_non_delivering"])){d=babelHelpers["extends"]({},d,(c={},c.checkout_non_delivering=!0,c))}c=a instanceof b("AdsAPICampaignGroupRecord")?b("AdsAPICampaignGroupRecordUtils").isNewCampaignGroup(a):a.isNew;c&&delete d.id;return d}function c(a,c,d){return d.map(function(d){return b("AdsCFCampaignUtils").processCampaignBeforePosting(d,b("getByPath")(c,["buying_type"]),a.timezone_id)})}e.exports={generateCampaignGroup:a,generateCampaigns:c}}),null); __d("AdsCFLoggingUtils",["AdsCFAdgroupDataProvider","AdsCFAdgroupStateUtils","AdsCFCampaignStateUtils","AdsCFLogger","AdsCFSpecGenerationUtils","LogHistory","adsCFCampaignGroupRecordSelector","adsCFCampaignStateSelector","adsCFGetActiveCampaignIDState_HACK"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("LogHistory").getInstance("AdsCFLoggerStore");function a(){return{adgroup_spec:b("AdsCFAdgroupStateUtils").getAdgroupRecords(b("AdsCFAdgroupDataProvider")()),campaign_group_spec:b("AdsCFSpecGenerationUtils").generateCampaignGroup(b("adsCFCampaignGroupRecordSelector")()),campaign_spec:b("AdsCFCampaignStateUtils").getFirstSelectedRecord(b("adsCFCampaignStateSelector")(),b("adsCFGetActiveCampaignIDState_HACK")()).toJS()}}function h(a,c){c=c||{};b("AdsCFLogger").log(a,c);g.log(a,JSON.stringify(c))}function c(a,c){b("AdsCFLogger").logOnce(a,(a=c)!=null?a:{})}function d(a){var b=a.type==="warn"?"warning":"fatal_error";h(b,{message:a.message,stack_trace:a.stack,error_script:a.script,error_type:a.name,error_line:a.line})}function f(a,b){h("page_selection",{pageID:b,actionType:a})}function i(a,b){h("page_set_selection",{pageSetID:b,actionType:a})}a={getAdObjectAPISpecs:a,log:h,logJSError:d,logOnce:c,logPageSelection:f,logPageSetSelection:i};e.exports=a}),null); __d("AdsAdvertiserFriendlyErrorsUtils",["AdsError"],(function(a,b,c,d,e,f){"use strict";a={getFriendlyError:function(a,c){c=c.value;var d=a.key;if(typeof d!=="number"||!c.has(d))return a;c=c.get(d);return c==null?a:b("AdsError").createError(d,c.desc,{cta:a.cta,field:a.field,level:a.level,path:a.path,title:c.summary.toString(),isDeliveryIssue:a.isDeliveryIssue,isServerError:a.isServerError,helpCenterID:a.help_center_id})}};e.exports=a}),null); __d("AdsAMAdvertiserFriendlyErrorsUtils",["AdsAdvertiserFriendlyErrorsUtils","AdsAMAdvertiserFriendlyErrorMapNew"],(function(a,b,c,d,e,f){"use strict";var g={getFriendlyErrors:function(a){return a.map(g.getFriendlyError)},getFriendlyError:function(a){var c=b("AdsAdvertiserFriendlyErrorsUtils").getFriendlyError(a,b("AdsAMAdvertiserFriendlyErrorMapNew"));return c!==a?c:a}};e.exports=g}),null); __d("AdsAsyncValidator",["AdsBaseValidator","abstractMethod"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.validate=function(a){return b("abstractMethod")("AdsAsyncValidator","validate")};return c}(b("AdsBaseValidator"));e.exports=a}),null); __d("AdsInterfacesScenarioLoggerStore",["AdsBaseScenarioLoggerStore","AdsInterfacesLogger"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getStateData=function(){return{}};d.log=function(a,c){b("AdsInterfacesLogger").log({eventName:a,data:c},b("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP)};return c}(b("AdsBaseScenarioLoggerStore"));e.exports=new a()}),null); __d("AdsAdAccountImpl.bs",["bs_js_primitive","AdsDataModelUtils.bs","bs_js_null_undefined"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g={account_id:null,amount_spent:null,name:null,capabilities:null,currency:null,spend_cap:null,timezone_id:null};function a(a){return b("bs_js_primitive").nullable_to_opt(a.account_id)}function c(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{account_id:b("bs_js_null_undefined").fromOption(a)})}function d(a){return b("bs_js_primitive").nullable_to_opt(a.amount_spent)}function e(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{amount_spent:b("bs_js_null_undefined").fromOption(a)})}function h(a){return b("bs_js_primitive").nullable_to_opt(a.name)}function i(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{name:b("bs_js_null_undefined").fromOption(a)})}function j(a){return b("bs_js_primitive").nullable_to_opt(a.capabilities)}function k(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{capabilities:b("bs_js_null_undefined").fromOption(a)})}function l(a){return b("bs_js_primitive").nullable_to_opt(a.currency)}function m(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{currency:b("bs_js_null_undefined").fromOption(a)})}function n(a){return b("bs_js_primitive").nullable_to_opt(a.spend_cap)}function o(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{spend_cap:b("bs_js_null_undefined").fromOption(a)})}function p(a){return b("bs_js_primitive").nullable_to_opt(a.timezone_id)}function q(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{timezone_id:b("bs_js_null_undefined").fromOption(a)})}f.empty=g;f.getAdAccountID=a;f.setAdAccountID=c;f.getAmountSpent=d;f.setAmountSpent=e;f.getName=h;f.setName=i;f.getCapabilities=j;f.setCapabilities=k;f.getCurrency=l;f.setCurrency=m;f.getSpendCap=n;f.setSpendCap=o;f.getTimeZoneID=p;f.setTimeZoneID=q}),null); __d("AdsAdAccountCreator.bs",["AdsAdAccountImpl.bs"],(function(a,b,c,d,e,f){"use strict";function a(a){return a}function c(){return b("AdsAdAccountImpl.bs").empty}f.create=a;f.createEmpty=c}),null); __d("AdsAdgroupImpl.bs",["bs_js_primitive","AdsDataModelUtils.bs","bs_js_null_undefined"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g={account_id:null,campaign_id:null,adset_id:null,id:null,name:null,creative:null};function a(a){return b("bs_js_primitive").nullable_to_opt(a.account_id)}function c(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{account_id:b("bs_js_null_undefined").fromOption(a)})}function d(a){return b("bs_js_primitive").nullable_to_opt(a.campaign_id)}function e(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{campaign_id:b("bs_js_null_undefined").fromOption(a)})}function h(a){return b("bs_js_primitive").nullable_to_opt(a.adset_id)}function i(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{adset_id:b("bs_js_null_undefined").fromOption(a)})}function j(a){return b("bs_js_primitive").nullable_to_opt(a.id)}function k(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{id:b("bs_js_null_undefined").fromOption(a)})}function l(a){return b("bs_js_primitive").nullable_to_opt(a.name)}function m(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{name:b("bs_js_null_undefined").fromOption(a)})}function n(a){return b("bs_js_primitive").nullable_to_opt(a.creative)}function o(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{creative:b("bs_js_null_undefined").fromOption(a)})}f.empty=g;f.getAdAccountID=a;f.setAdAccountID=c;f.getCampaignGroupID=d;f.setCampaignGroupID=e;f.getCampaignID=h;f.setCampaignID=i;f.getID=j;f.setID=k;f.getName=l;f.setName=m;f.getCreative=n;f.setCreative=o}),null); __d("AdsAdgroupCreator.bs",["AdsAdgroupImpl.bs"],(function(a,b,c,d,e,f){"use strict";function a(a){return a}function c(){return b("AdsAdgroupImpl.bs").empty}f.create=a;f.createEmpty=c}),null); __d("AdsAdgroup.bs",["FBOption.bs","bs_js_primitive","AdsAdgroupImpl.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("AdsAdgroupImpl.bs").getAdAccountID;function a(a,c){return b("AdsAdgroupImpl.bs").setAdAccountID(b("bs_js_primitive").some(a),c)}function c(a){return b("AdsAdgroupImpl.bs").setAdAccountID(void 0,a)}function d(a,c){a=b("FBOption.bs").map(a,b("AdsAdgroupImpl.bs").getAdAccountID(c));return b("AdsAdgroupImpl.bs").setAdAccountID(a,c)}var h=b("AdsAdgroupImpl.bs").getCampaignGroupID;function e(a,c){return b("AdsAdgroupImpl.bs").setCampaignGroupID(b("bs_js_primitive").some(a),c)}function i(a){return b("AdsAdgroupImpl.bs").setCampaignGroupID(void 0,a)}function j(a,c){a=b("FBOption.bs").map(a,b("AdsAdgroupImpl.bs").getCampaignGroupID(c));return b("AdsAdgroupImpl.bs").setCampaignGroupID(a,c)}var k=b("AdsAdgroupImpl.bs").getCampaignID;function l(a,c){return b("AdsAdgroupImpl.bs").setCampaignID(b("bs_js_primitive").some(a),c)}function m(a){return b("AdsAdgroupImpl.bs").setCampaignID(void 0,a)}function n(a,c){a=b("FBOption.bs").map(a,b("AdsAdgroupImpl.bs").getCampaignID(c));return b("AdsAdgroupImpl.bs").setCampaignID(a,c)}var o=b("AdsAdgroupImpl.bs").getID;function p(a,c){return b("AdsAdgroupImpl.bs").setID(b("bs_js_primitive").some(a),c)}function q(a){return b("AdsAdgroupImpl.bs").setID(void 0,a)}function r(a,c){a=b("FBOption.bs").map(a,b("AdsAdgroupImpl.bs").getID(c));return b("AdsAdgroupImpl.bs").setID(a,c)}var s=b("AdsAdgroupImpl.bs").getName;function t(a,c){return b("AdsAdgroupImpl.bs").setName(a,c)}function u(a){return b("AdsAdgroupImpl.bs").setName(void 0,a)}function v(a,c){a=b("FBOption.bs").map(a,b("AdsAdgroupImpl.bs").getName(c));return b("AdsAdgroupImpl.bs").setName(a,c)}var w=b("AdsAdgroupImpl.bs").getCreative;function x(a,c){return b("AdsAdgroupImpl.bs").setCreative(b("bs_js_primitive").some(a),c)}function y(a){return b("AdsAdgroupImpl.bs").setCreative(void 0,a)}function z(a,c){a=b("FBOption.bs").map(a,b("AdsAdgroupImpl.bs").getCreative(c));return b("AdsAdgroupImpl.bs").setCreative(a,c)}f.getAdAccountID=g;f.setAdAccountID=a;f.deleteAdAccountID=c;f.updateAdAccountID=d;f.getCampaignGroupID=h;f.setCampaignGroupID=e;f.deleteCampaignGroupID=i;f.updateCampaignGroupID=j;f.getCampaignID=k;f.setCampaignID=l;f.deleteCampaignID=m;f.updateCampaignID=n;f.getID=o;f.setID=p;f.deleteID=q;f.updateID=r;f.getName=s;f.setName=t;f.deleteName=u;f.updateName=v;f.getCreative=w;f.setCreative=x;f.deleteCreative=y;f.updateCreative=z}),null); __d("ErrorCode.bs",["errorCode","errorDesc"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();function a(a){__p&&__p();if(typeof a==="number")switch(a){case 0:return[1340004,h._(function(a,b){return a._("You are not logged in. Please login and try again.")},{})];case 1:return[1359096,h._(function(a,b){return a._("Missing Required Parameter")},{})];case 2:return[1487566,h._(function(a,b){return a._("This campaign has been deleted, so you can only edit the name. If you want to edit other fields, you can duplicate this campaign, which will create a new campaign with the same settings that you can then edit.")},{})];case 3:return[1487069,h._(function(a,b){return a._("The friendly name is invalid")},{})];case 4:return[1487045,h._(function(a,b){return a._("Names of campaigns, ad sets and ads can't be more than 128 characters. Please shorten the name and try again.")},{})];case 5:return[1487046,h._(function(a,b){return a._("The name is too long.")},{})];case 6:return[1487044,h._(function(a,b){return a._("Name too short")},{})];case 7:return[1487043,h._(function(a,b){return a._("Please enter a name.")},{})];case 8:return[1885261,h._(function(a,b){return a._("Your ad set budget is too high. Please decrease your budget. The maximum budget is {max_budget}.",[a._param("max_budget",b.max_budget)])},{})];case 9:return[1885486,h._(function(a,b){return a._("Your split test length needs to be between {min_days} and {max_days} days. Please edit your ad set to adjust the schedule.",[a._param("min_days",b.min_days),a._param("max_days",b.max_days)])},{})];case 10:return[1885485,h._(function(a,b){return a._("Your split test should start in at least {minute_buffer} minutes.",[a._param("minute_buffer",b.minute_buffer)])},{})];case 11:return[1885475,h._(function(a,b){return a._("Please choose a variable.")},{})];case 12:return[1885032,h._(function(a,b){return a._("The 'promoted_object' field is required for the specified objective.")},{})];case 13:return[2446157,h._(function(a,b){return a._("Please select a page at the \"Ad Set\" level.")},{})];case 14:return[1370004,h._(function(a,b){return a._("{error_msg}",[a._param("error_msg",b.error_msg)])},{})];case 15:return[1376182,h._(function(a,b){return a._("You can only invite people whose email domains have been verified for your Workplace community")},{})];case 16:return[1487842,h._(function(a,b){return a._("The minimum age you have selected can't be used. Please choose a different minimum age and try again.")},{})];case 17:return[1487843,h._(function(a,b){return a._("The maximum age you have selected can't be used. Please choose a different maximum age and try again.")},{})];case 18:return[1487845,h._(function(a,b){return a._("You have selected a minimum age that is greater than the maximum age. Please lower your minimum age so that it is less than the maximum age and try again.")},{})];case 19:return[1815298,h._(function(a,b){return a._("Please correct publisher category name(s).")},{})];case 20:return[1815430,h._(function(a,b){return a._("Please specify a promoted object for the ad set.")},{})];case 21:return[1487056,h._(function(a,b){return a._("This ad set has been deleted, so you can only edit the name. If you want to edit other fields, you can duplicate this ad set, which will create a new ad set with the same settings that you can then edit.")},{})];case 22:return[1487868,h._(function(a,b){return a._("Something went wrong and we couldn't create the reach and frequency prediction for this the ad set, which is required. Edit the ad set to create a prediction.")},{})];case 23:return[1815046,h._(function(a,b){return a._("You're trying to use too many labels. Please delete some of your labels.")},{})];case 24:return[1815807,h._(function(a,b){return a._("Page is required in Promoted Object for WhatsApp Destination Type")},{})];case 25:return[1815980,h._(function(a,b){return a._("To use WhatsApp Status, please select the Facebook Feeds or Instagram Story placement.")},{})];case 26:return[2013008,h._(function(a,b){return a._("2-Second Continuous Video Views optimization and buying is not currently supported by any of your placements, please select other eligible placements or change optimization.")},{})];case 27:return[2013007,h._(function(a,b){return a._("2-Second Continuous Video Views optimization and buying is not currently supported by one or more of your placements.")},{})];case 28:return[2013011,h._(function(a,b){return a._("Completed video view optimization and buying is not currently supported by any of your placements, please select other eligible placements or change optimization.")},{})];case 29:return[2013014,h._(function(a,b){return a._("15-Second video view optimization and buying is not currently supported by any of your placements, please select other eligible placements or change optimization.")},{})];case 30:return[1815623,h._(function(a,b){return a._("To use Facebook Suggested Video, please select the Facebook Feeds placement.")},{})];case 31:return[1815767,h._(function(a,b){return a._("Sponsored messages can only be created under the Messages campaign objective. Please create a new campaign with the Messages objective.")},{})];case 32:return[1885662,h._(function(a,b){return a._("The pixel conversion event you selected ({ineligible_offsite_custom_event}) can't be used with value optimization. Please select the purchase conversion event.",[a._param("ineligible_offsite_custom_event",b.ineligible_offsite_custom_event)])},{})];case 33:return[1487689,h._(function(a,b){return a._("You must select a conversion event before continuing.")},{})];case 34:return[1885049,h._(function(a,b){return a._("When promoting a product catalog and product set, you must provide a \"product_set_id\" parameter to the promoted object at the \"Ad Campaign\" level.")},{})];case 35:return[1885664,h._(function(a,b){return a._("Your ads can't be optimized for conversions unless you select a conversion event")},{})];case 36:return[1815568,h._(function(a,b){return a._("To use Messenger Inbox, please also select the Facebook Feeds placement.")},{})];case 37:return[1815985,h._(function(a,b){return a._("To use the Messenger Stories placement, please also select either Facebook Feeds or Instagram Stories.")},{})];case 38:return[1815698,h._(function(a,b){return a._("To use Facebook Marketplace, please also select the Facebook Feeds placement.")},{})];case 39:return[1815462,h._(function(a,b){return a._("To use Facebook Instant Articles, please select the Facebook Feeds placement.")},{})];case 40:return[2490019,h._(function(a,b){return a._("To use Facebook Stories, please select the Facebook Feeds placement.")},{})];case 41:return[1815891,h._(function(a,b){return a._("To use Facebook Stories as a placement, please also select either Facebook Feeds or Instagram Stories.")},{})];case 42:return[2490047,h._(function(a,b){return a._("To use Facebook Search, please also select the Facebook Feeds placement.")},{})];case 43:return[2490068,h._(function(a,b){return a._("If you would like your ad shown on the Explore section of Instagram, you will also need to select Instagram Feed as a placement.")},{})];case 44:return[1815680,h._(function(a,b){return a._("The daily unique reach optimization is no longer supported in the video views objective. Try creating a new ad, or creating a similar ad set or campaign.")},{})];case 45:return[1815566,h._(function(a,b){return a._("To use Facebook Groups, please select the Facebook Feeds placement.")},{})];case 46:return[1815300,h._(function(a,b){return a._("App Event Optimization requires both application id and custom event type for promoted object.")},{})];case 47:return[2016021,h._(function(a,b){return a._("To use the conversions objective, please choose an app event.")},{})];case 48:return[1885665,h._(function(a,b){return a._("Please make sure your minimum spend limit is less than or equal to 90\u0025 of your maximum spend limit.")},{})];case 49:return[1885043,h._(function(a,b){return a._("Please update your creative sequence size to be equal to your frequency cap.")},{})];case 50:return[1885575,h._(function(a,b){return a._("We do not allow IDs in 'excluded_connections' to appear in 'connections'.")},{})];case 51:return[2006008,h._(function(a,b){return a._("This Page can't create offers right now because it doesn't follow our policies. See https:\/\/www.facebook.com\/page_guidelines.php for details.")},{})];case 52:return[2006032,h._(function(a,b){return a._("This campaign doesn't have an offer yet. Add one to finish creating your campaign.")},{})];case 53:return[2446045,h._(function(a,b){return a._("There's an issue with your ad placements. Try using automatic placements, or switch to automatic and then back to edit placements.")},{})];case 54:return[1815080,h._(function(a,b){return a._("Your campaign won't be active until your insertion order is approved. Please contact your account manager for more information.")},{})];case 55:return[2016045,h._(function(a,b){return a._("You have to first associate your advertiser account with this app to create a mobile app install ad that optimizes for installs or app events. Learn how you can do this here https:\/\/www.facebook.com\/business\/help\/303269370149084")},{})];case 56:return[1885011,h._(function(a,b){return a._("When promoting a mobile or canvas app, you must provide an \"object_store_url\" parameter to the promoted object at the \"Ad Set\" level.")},{})];case 57:return[1885571,h._(function(a,b){return a._("The selected direct deal's budget exceeds account budget limit.")},{})];case 58:return[1885520,h._(function(a,b){return a._("Deal not selected. Please selected a valid deal")},{})];case 59:return[1815916,h._(function(a,b){return a._("This objective and optimization goal combination is unable to support frequency control. Frequency control is currently only supported with the following objective and optimization goal combinations: Reach objective with Reach optimization goal, Brand Awareness objective with Ad Recall Lift optimization goal, PPE objective with PPE optimization goal and Video Views objective with Video Views or 2 Second Video Views optimization goal. Please change your objective or optimization goal.")},{})];case 60:return[2343001,h._(function(a,b){return a._("Please edit the frequency interval so it doesn't exceed the length of your ad set.")},{})];case 61:return[1815017,h._(function(a,b){return a._("Attempted to create a dynamic creative with no product set ID.")},{})];case 62:return[1815023,h._(function(a,b){return a._("Unable to add a promoted object to this objective. Please consider removing it.")},{})]}else switch(a.tag|0){case 0:return[1885024,h._(function(a,b){return a._("When creating an ad set within a campaign using the {objective} objective, a promoted object must be specified.",[a._param("objective",b.objective)])},{objective:a[0]})];case 1:return[2061015,h._(function(a,b){return a._("The {field} field is required. Please complete the field to continue.",[a._param("field",b.field)])},{field:a[0]})];case 2:return[2343003,h._(function(a,b){return a._("The maximum frequency must be a whole number of impressions between {min_impressions} and {max_impressions}.",[a._param("min_impressions",b.min_impressions),a._param("max_impressions",b.max_impressions)])},{min_impressions:a[0],max_impressions:a[1]})];case 3:return[2343002,h._(function(a,b){return a._("The value must be a whole number of days between {min_days} and {max_days}.",[a._param("min_days",b.min_days),a._param("max_days",b.max_days)])},{min_days:a[0],max_days:a[1]})]}}f.make=a}),null); __d("Validators.bs",["bs_curry","ErrorCode.bs","bs_js_primitive"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function g(){var a=[[0]],c=function(){return a[0]},d=function(b){a[0]=[[b,a[0][0]]];return 0},e=function(a,c,e){return d([a,c,b("ErrorCode.bs").make(e)])},f=function(){return d(0)};e=[e,f];return[e,c]}function a(){__p&&__p();var a=function(a){__p&&__p();var c=a[0],d=[void 0],e=[void 0],f=function(c){__p&&__p();c=b("bs_curry")._1(a[2],c);var f;if(c!==void 0){var h=b("bs_js_primitive").valFromOption(c),i=d[0],j=0;i!==void 0&&h===b("bs_js_primitive").valFromOption(i)?f=e[0]:j=1;if(j===1){i=g(0);b("bs_curry")._2(a[3],i[0],h);f=b("bs_curry")._1(i[1],0)}}else f=void 0;d[0]=c;e[0]=f;return f},h=a[1];return[c,f,h]};return[a]}f.buildUtils=g;f.SimpleCacheValidator=a}),null); __d("AdsAdgroupValidator.bs",["Validators.bs"],(function(a,b,c,d,e,f){"use strict";a=b("Validators.bs").SimpleCacheValidator([]);c=a[0];f.Make=c}),null); __d("AdsCampaignImpl.bs",["bs_js_primitive","AdsDataModelUtils.bs","bs_js_null_undefined"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g={account_id:null,campaign_id:null,creative_sequence:null,daily_min_spend_target:null,daily_spend_cap:null,destination_type:null,end_time:null,id:null,lifetime_min_spend_target:null,lifetime_spend_cap:null,name:null,optimization_goal:null,rf_prediction_id:null,start_time:null,status:null,promoted_object:null,frequency_control_specs:null,targeting:null,campaign:null};function a(a){return b("bs_js_primitive").nullable_to_opt(a.account_id)}function c(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{account_id:b("bs_js_null_undefined").fromOption(a)})}function d(a){return b("bs_js_primitive").nullable_to_opt(a.campaign_id)}function e(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{campaign_id:b("bs_js_null_undefined").fromOption(a)})}function h(a){return b("bs_js_primitive").nullable_to_opt(a.creative_sequence)}function i(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{creative_sequence:b("bs_js_null_undefined").fromOption(a)})}function j(a){return b("bs_js_primitive").nullable_to_opt(a.daily_min_spend_target)}function k(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{daily_min_spend_target:b("bs_js_null_undefined").fromOption(a)})}function l(a){return b("bs_js_primitive").nullable_to_opt(a.daily_spend_cap)}function m(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{daily_spend_cap:b("bs_js_null_undefined").fromOption(a)})}function n(a){return b("bs_js_primitive").nullable_to_opt(a.destination_type)}function o(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{destination_type:b("bs_js_null_undefined").fromOption(a)})}function p(a){return b("bs_js_primitive").nullable_to_opt(a.end_time)}function q(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{end_time:b("bs_js_null_undefined").fromOption(a)})}function r(a){return b("bs_js_primitive").nullable_to_opt(a.id)}function s(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{id:b("bs_js_null_undefined").fromOption(a)})}function t(a){return b("bs_js_primitive").nullable_to_opt(a.lifetime_min_spend_target)}function u(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{lifetime_min_spend_target:b("bs_js_null_undefined").fromOption(a)})}function v(a){return b("bs_js_primitive").nullable_to_opt(a.lifetime_spend_cap)}function w(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{lifetime_spend_cap:b("bs_js_null_undefined").fromOption(a)})}function x(a){return b("bs_js_primitive").nullable_to_opt(a.name)}function y(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{name:b("bs_js_null_undefined").fromOption(a)})}function z(a){return b("bs_js_primitive").nullable_to_opt(a.optimization_goal)}function A(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{optimization_goal:b("bs_js_null_undefined").fromOption(a)})}function B(a){return b("bs_js_primitive").nullable_to_opt(a.rf_prediction_id)}function C(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{rf_prediction_id:b("bs_js_null_undefined").fromOption(a)})}function D(a){return b("bs_js_primitive").nullable_to_opt(a.start_time)}function E(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{start_time:b("bs_js_null_undefined").fromOption(a)})}function F(a){return b("bs_js_primitive").nullable_to_opt(a.status)}function G(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{status:b("bs_js_null_undefined").fromOption(a)})}function H(a){return b("bs_js_primitive").nullable_to_opt(a.promoted_object)}function I(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{promoted_object:b("bs_js_null_undefined").fromOption(a)})}function J(a){return b("bs_js_primitive").nullable_to_opt(a.frequency_control_specs)}function K(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{frequency_control_specs:b("bs_js_null_undefined").fromOption(a)})}function L(a){return b("bs_js_primitive").nullable_to_opt(a.targeting)}function M(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{targeting:b("bs_js_null_undefined").fromOption(a)})}function N(a){return b("bs_js_primitive").nullable_to_opt(a.campaign)}function O(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{campaign:b("bs_js_null_undefined").fromOption(a)})}f.empty=g;f.getAdAccountID=a;f.setAdAccountID=c;f.getCampaignGroupID=d;f.setCampaignGroupID=e;f.getCreativeSequence=h;f.setCreativeSequence=i;f.getDailyMinSpendTarget=j;f.setDailyMinSpendTarget=k;f.getDailySpendCap=l;f.setDailySpendCap=m;f.getDestinationType=n;f.setDestinationType=o;f.getEndTime=p;f.setEndTime=q;f.getID=r;f.setID=s;f.getLifetimeMinSpendTarget=t;f.setLifetimeMinSpendTarget=u;f.getLifetimeSpendCap=v;f.setLifetimeSpendCap=w;f.getName=x;f.setName=y;f.getOptimizationGoal=z;f.setOptimizationGoal=A;f.getRFPredictionID=B;f.setRFPredictionID=C;f.getStartTime=D;f.setStartTime=E;f.getStatus=F;f.setStatus=G;f.getPromotedObject=H;f.setPromotedObject=I;f.getFrequencyControlSpecs=J;f.setFrequencyControlSpecs=K;f.getTargeting=L;f.setTargeting=M;f.getCampaignGroup=N;f.setCampaignGroup=O}),null); __d("AdsCampaign.bs",["FBOption.bs","bs_js_primitive","AdsCampaignImpl.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("AdsCampaignImpl.bs").getAdAccountID;function a(a,c){return b("AdsCampaignImpl.bs").setAdAccountID(b("bs_js_primitive").some(a),c)}function c(a){return b("AdsCampaignImpl.bs").setAdAccountID(void 0,a)}function d(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignImpl.bs").getAdAccountID(c));return b("AdsCampaignImpl.bs").setAdAccountID(a,c)}var h=b("AdsCampaignImpl.bs").getCampaignGroupID;function e(a,c){return b("AdsCampaignImpl.bs").setCampaignGroupID(b("bs_js_primitive").some(a),c)}function i(a){return b("AdsCampaignImpl.bs").setCampaignGroupID(void 0,a)}function j(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignImpl.bs").getCampaignGroupID(c));return b("AdsCampaignImpl.bs").setCampaignGroupID(a,c)}var k=b("AdsCampaignImpl.bs").getCreativeSequence;function l(a,c){return b("AdsCampaignImpl.bs").setCreativeSequence(a,c)}function m(a){return b("AdsCampaignImpl.bs").setCreativeSequence(void 0,a)}function n(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignImpl.bs").getCreativeSequence(c));return b("AdsCampaignImpl.bs").setCreativeSequence(a,c)}var o=b("AdsCampaignImpl.bs").getDailyMinSpendTarget;function p(a,c){return b("AdsCampaignImpl.bs").setDailyMinSpendTarget(a,c)}function q(a){return b("AdsCampaignImpl.bs").setDailyMinSpendTarget(void 0,a)}function r(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignImpl.bs").getDailyMinSpendTarget(c));return b("AdsCampaignImpl.bs").setDailyMinSpendTarget(a,c)}var s=b("AdsCampaignImpl.bs").getDailySpendCap;function t(a,c){return b("AdsCampaignImpl.bs").setDailySpendCap(a,c)}function u(a){return b("AdsCampaignImpl.bs").setDailySpendCap(void 0,a)}function v(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignImpl.bs").getDailySpendCap(c));return b("AdsCampaignImpl.bs").setDailySpendCap(a,c)}var w=b("AdsCampaignImpl.bs").getDestinationType;function x(a,c){return b("AdsCampaignImpl.bs").setDestinationType(b("bs_js_primitive").some(a),c)}function y(a){return b("AdsCampaignImpl.bs").setDestinationType(void 0,a)}function z(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignImpl.bs").getDestinationType(c));return b("AdsCampaignImpl.bs").setDestinationType(a,c)}var A=b("AdsCampaignImpl.bs").getEndTime;function B(a,c){return b("AdsCampaignImpl.bs").setEndTime(b("bs_js_primitive").some(a),c)}function C(a){return b("AdsCampaignImpl.bs").setEndTime(void 0,a)}function D(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignImpl.bs").getEndTime(c));return b("AdsCampaignImpl.bs").setEndTime(a,c)}var E=b("AdsCampaignImpl.bs").getID;function F(a,c){return b("AdsCampaignImpl.bs").setID(b("bs_js_primitive").some(a),c)}function G(a){return b("AdsCampaignImpl.bs").setID(void 0,a)}function H(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignImpl.bs").getID(c));return b("AdsCampaignImpl.bs").setID(a,c)}var I=b("AdsCampaignImpl.bs").getLifetimeMinSpendTarget;function J(a,c){return b("AdsCampaignImpl.bs").setLifetimeMinSpendTarget(a,c)}function K(a){return b("AdsCampaignImpl.bs").setLifetimeMinSpendTarget(void 0,a)}function L(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignImpl.bs").getLifetimeMinSpendTarget(c));return b("AdsCampaignImpl.bs").setLifetimeMinSpendTarget(a,c)}var M=b("AdsCampaignImpl.bs").getLifetimeSpendCap;function N(a,c){return b("AdsCampaignImpl.bs").setLifetimeSpendCap(a,c)}function O(a){return b("AdsCampaignImpl.bs").setLifetimeSpendCap(void 0,a)}function P(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignImpl.bs").getLifetimeSpendCap(c));return b("AdsCampaignImpl.bs").setLifetimeSpendCap(a,c)}var Q=b("AdsCampaignImpl.bs").getName;function R(a,c){return b("AdsCampaignImpl.bs").setName(a,c)}function S(a){return b("AdsCampaignImpl.bs").setName(void 0,a)}function T(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignImpl.bs").getName(c));return b("AdsCampaignImpl.bs").setName(a,c)}var U=b("AdsCampaignImpl.bs").getOptimizationGoal;function V(a,c){return b("AdsCampaignImpl.bs").setOptimizationGoal(b("bs_js_primitive").some(a),c)}function W(a){return b("AdsCampaignImpl.bs").setOptimizationGoal(void 0,a)}function X(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignImpl.bs").getOptimizationGoal(c));return b("AdsCampaignImpl.bs").setOptimizationGoal(a,c)}var Y=b("AdsCampaignImpl.bs").getRFPredictionID;function Z(a,c){return b("AdsCampaignImpl.bs").setRFPredictionID(b("bs_js_primitive").some(a),c)}function $(a){return b("AdsCampaignImpl.bs").setRFPredictionID(void 0,a)}function aa(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignImpl.bs").getRFPredictionID(c));return b("AdsCampaignImpl.bs").setRFPredictionID(a,c)}var ba=b("AdsCampaignImpl.bs").getStartTime;function ca(a,c){return b("AdsCampaignImpl.bs").setStartTime(b("bs_js_primitive").some(a),c)}function da(a){return b("AdsCampaignImpl.bs").setStartTime(void 0,a)}function ea(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignImpl.bs").getStartTime(c));return b("AdsCampaignImpl.bs").setStartTime(a,c)}var fa=b("AdsCampaignImpl.bs").getStatus;function ga(a,c){return b("AdsCampaignImpl.bs").setStatus(b("bs_js_primitive").some(a),c)}function ha(a){return b("AdsCampaignImpl.bs").setStatus(void 0,a)}function ia(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignImpl.bs").getStatus(c));return b("AdsCampaignImpl.bs").setStatus(a,c)}var ja=b("AdsCampaignImpl.bs").getPromotedObject;function ka(a,c){return b("AdsCampaignImpl.bs").setPromotedObject(b("bs_js_primitive").some(a),c)}function la(a){return b("AdsCampaignImpl.bs").setPromotedObject(void 0,a)}function ma(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignImpl.bs").getPromotedObject(c));return b("AdsCampaignImpl.bs").setPromotedObject(a,c)}var na=b("AdsCampaignImpl.bs").getFrequencyControlSpecs;function oa(a,c){return b("AdsCampaignImpl.bs").setFrequencyControlSpecs(a,c)}function pa(a){return b("AdsCampaignImpl.bs").setFrequencyControlSpecs(void 0,a)}function qa(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignImpl.bs").getFrequencyControlSpecs(c));return b("AdsCampaignImpl.bs").setFrequencyControlSpecs(a,c)}var ra=b("AdsCampaignImpl.bs").getTargeting;function sa(a,c){return b("AdsCampaignImpl.bs").setTargeting(b("bs_js_primitive").some(a),c)}function ta(a){return b("AdsCampaignImpl.bs").setTargeting(void 0,a)}function ua(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignImpl.bs").getTargeting(c));return b("AdsCampaignImpl.bs").setTargeting(a,c)}var va=b("AdsCampaignImpl.bs").getCampaignGroup;function wa(a,c){return b("AdsCampaignImpl.bs").setCampaignGroup(b("bs_js_primitive").some(a),c)}function xa(a){return b("AdsCampaignImpl.bs").setCampaignGroup(void 0,a)}function ya(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignImpl.bs").getCampaignGroup(c));return b("AdsCampaignImpl.bs").setCampaignGroup(a,c)}f.getAdAccountID=g;f.setAdAccountID=a;f.deleteAdAccountID=c;f.updateAdAccountID=d;f.getCampaignGroupID=h;f.setCampaignGroupID=e;f.deleteCampaignGroupID=i;f.updateCampaignGroupID=j;f.getCreativeSequence=k;f.setCreativeSequence=l;f.deleteCreativeSequence=m;f.updateCreativeSequence=n;f.getDailyMinSpendTarget=o;f.setDailyMinSpendTarget=p;f.deleteDailyMinSpendTarget=q;f.updateDailyMinSpendTarget=r;f.getDailySpendCap=s;f.setDailySpendCap=t;f.deleteDailySpendCap=u;f.updateDailySpendCap=v;f.getDestinationType=w;f.setDestinationType=x;f.deleteDestinationType=y;f.updateDestinationType=z;f.getEndTime=A;f.setEndTime=B;f.deleteEndTime=C;f.updateEndTime=D;f.getID=E;f.setID=F;f.deleteID=G;f.updateID=H;f.getLifetimeMinSpendTarget=I;f.setLifetimeMinSpendTarget=J;f.deleteLifetimeMinSpendTarget=K;f.updateLifetimeMinSpendTarget=L;f.getLifetimeSpendCap=M;f.setLifetimeSpendCap=N;f.deleteLifetimeSpendCap=O;f.updateLifetimeSpendCap=P;f.getName=Q;f.setName=R;f.deleteName=S;f.updateName=T;f.getOptimizationGoal=U;f.setOptimizationGoal=V;f.deleteOptimizationGoal=W;f.updateOptimizationGoal=X;f.getRFPredictionID=Y;f.setRFPredictionID=Z;f.deleteRFPredictionID=$;f.updateRFPredictionID=aa;f.getStartTime=ba;f.setStartTime=ca;f.deleteStartTime=da;f.updateStartTime=ea;f.getStatus=fa;f.setStatus=ga;f.deleteStatus=ha;f.updateStatus=ia;f.getPromotedObject=ja;f.setPromotedObject=ka;f.deletePromotedObject=la;f.updatePromotedObject=ma;f.getFrequencyControlSpecs=na;f.setFrequencyControlSpecs=oa;f.deleteFrequencyControlSpecs=pa;f.updateFrequencyControlSpecs=qa;f.getTargeting=ra;f.setTargeting=sa;f.deleteTargeting=ta;f.updateTargeting=ua;f.getCampaignGroup=va;f.setCampaignGroup=wa;f.deleteCampaignGroup=xa;f.updateCampaignGroup=ya}),null); __d("AdsCampaignGroupImpl.bs",["bs_js_primitive","AdsDataModelUtils.bs","bs_js_null_undefined"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g={account_id:null,bid_strategy:null,boosted_component_client_app_id:null,boosted_component_product:null,boosted_page_id:null,budget_remaining:null,buying_type:null,can_use_spend_cap:null,created_time:null,daily_budget:null,effective_status:null,has_dynamic_creative_optimization_adsets:null,id:null,is_autobid:null,is_average_price_pacing:null,is_job_openning_post:null,lifetime_budget:null,lifetime_spent:null,name:null,objective:null,pacing_type:null,special_ad_category:null,smart_promotion_type:null,spend_cap:null,split_test_status:null,start_time:null,status:null,stop_time:null,study_ids:null,updated_time:null,promoted_object:null,brand_lift_studies:null,split_test_config:null,adlabels:null};function a(a){return b("bs_js_primitive").nullable_to_opt(a.account_id)}function c(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{account_id:b("bs_js_null_undefined").fromOption(a)})}function d(a){return b("bs_js_primitive").nullable_to_opt(a.bid_strategy)}function e(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{bid_strategy:b("bs_js_null_undefined").fromOption(a)})}function h(a){return b("bs_js_primitive").nullable_to_opt(a.boosted_component_client_app_id)}function i(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{boosted_component_client_app_id:b("bs_js_null_undefined").fromOption(a)})}function j(a){return b("bs_js_primitive").nullable_to_opt(a.boosted_component_product)}function k(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{boosted_component_product:b("bs_js_null_undefined").fromOption(a)})}function l(a){return b("bs_js_primitive").nullable_to_opt(a.boosted_page_id)}function m(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{boosted_page_id:b("bs_js_null_undefined").fromOption(a)})}function n(a){return b("bs_js_primitive").nullable_to_opt(a.budget_remaining)}function o(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{budget_remaining:b("bs_js_null_undefined").fromOption(a)})}function p(a){return b("bs_js_primitive").nullable_to_opt(a.buying_type)}function q(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{buying_type:b("bs_js_null_undefined").fromOption(a)})}function r(a){return b("bs_js_primitive").nullable_to_opt(a.can_use_spend_cap)}function s(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{can_use_spend_cap:b("bs_js_null_undefined").fromOption(a)})}function t(a){return b("bs_js_primitive").nullable_to_opt(a.created_time)}function u(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{created_time:b("bs_js_null_undefined").fromOption(a)})}function v(a){return b("bs_js_primitive").nullable_to_opt(a.daily_budget)}function w(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{daily_budget:b("bs_js_null_undefined").fromOption(a)})}function x(a){return b("bs_js_primitive").nullable_to_opt(a.effective_status)}function y(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{effective_status:b("bs_js_null_undefined").fromOption(a)})}function z(a){return b("bs_js_primitive").nullable_to_opt(a.has_dynamic_creative_optimization_adsets)}function A(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{has_dynamic_creative_optimization_adsets:b("bs_js_null_undefined").fromOption(a)})}function B(a){return b("bs_js_primitive").nullable_to_opt(a.id)}function C(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{id:b("bs_js_null_undefined").fromOption(a)})}function D(a){return b("bs_js_primitive").nullable_to_opt(a.is_autobid)}function E(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{is_autobid:b("bs_js_null_undefined").fromOption(a)})}function F(a){return b("bs_js_primitive").nullable_to_opt(a.is_average_price_pacing)}function G(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{is_average_price_pacing:b("bs_js_null_undefined").fromOption(a)})}function H(a){return b("bs_js_primitive").nullable_to_opt(a.is_job_openning_post)}function I(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{is_job_openning_post:b("bs_js_null_undefined").fromOption(a)})}function J(a){return b("bs_js_primitive").nullable_to_opt(a.lifetime_budget)}function K(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{lifetime_budget:b("bs_js_null_undefined").fromOption(a)})}function L(a){return b("bs_js_primitive").nullable_to_opt(a.lifetime_spent)}function M(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{lifetime_spent:b("bs_js_null_undefined").fromOption(a)})}function N(a){return b("bs_js_primitive").nullable_to_opt(a.name)}function O(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{name:b("bs_js_null_undefined").fromOption(a)})}function P(a){return b("bs_js_primitive").nullable_to_opt(a.objective)}function Q(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{objective:b("bs_js_null_undefined").fromOption(a)})}function R(a){return b("bs_js_primitive").nullable_to_opt(a.pacing_type)}function S(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{pacing_type:b("bs_js_null_undefined").fromOption(a)})}function T(a){return b("bs_js_primitive").nullable_to_opt(a.special_ad_category)}function U(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{special_ad_category:b("bs_js_null_undefined").fromOption(a)})}function V(a){return b("bs_js_primitive").nullable_to_opt(a.smart_promotion_type)}function W(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{smart_promotion_type:b("bs_js_null_undefined").fromOption(a)})}function X(a){return b("bs_js_primitive").nullable_to_opt(a.spend_cap)}function Y(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{spend_cap:b("bs_js_null_undefined").fromOption(a)})}function Z(a){return b("bs_js_primitive").nullable_to_opt(a.split_test_status)}function $(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{split_test_status:b("bs_js_null_undefined").fromOption(a)})}function aa(a){return b("bs_js_primitive").nullable_to_opt(a.start_time)}function ba(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{start_time:b("bs_js_null_undefined").fromOption(a)})}function ca(a){return b("bs_js_primitive").nullable_to_opt(a.status)}function da(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{status:b("bs_js_null_undefined").fromOption(a)})}function ea(a){return b("bs_js_primitive").nullable_to_opt(a.stop_time)}function fa(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{stop_time:b("bs_js_null_undefined").fromOption(a)})}function ga(a){return b("bs_js_primitive").nullable_to_opt(a.study_ids)}function ha(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{study_ids:b("bs_js_null_undefined").fromOption(a)})}function ia(a){return b("bs_js_primitive").nullable_to_opt(a.updated_time)}function ja(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{updated_time:b("bs_js_null_undefined").fromOption(a)})}function ka(a){return b("bs_js_primitive").nullable_to_opt(a.promoted_object)}function la(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{promoted_object:b("bs_js_null_undefined").fromOption(a)})}function ma(a){return b("bs_js_primitive").nullable_to_opt(a.brand_lift_studies)}function na(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{brand_lift_studies:b("bs_js_null_undefined").fromOption(a)})}function oa(a){return b("bs_js_primitive").nullable_to_opt(a.split_test_config)}function pa(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{split_test_config:b("bs_js_null_undefined").fromOption(a)})}function qa(a){return b("bs_js_primitive").nullable_to_opt(a.adlabels)}function ra(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{adlabels:b("bs_js_null_undefined").fromOption(a)})}f.empty=g;f.getAdAccountID=a;f.setAdAccountID=c;f.getBidStrategy=d;f.setBidStrategy=e;f.getBoostedComponentClientAppID=h;f.setBoostedComponentClientAppID=i;f.getBoostedComponentProduct=j;f.setBoostedComponentProduct=k;f.getBoostedPageID=l;f.setBoostedPageID=m;f.getBudgetRemaining=n;f.setBudgetRemaining=o;f.getBuyingType=p;f.setBuyingType=q;f.getCanUseSpendCap=r;f.setCanUseSpendCap=s;f.getCreatedTime=t;f.setCreatedTime=u;f.getDailyBudget=v;f.setDailyBudget=w;f.getEffectiveStatus=x;f.setEffectiveStatus=y;f.getHasDynamicCreativeOptimizationAdsets=z;f.setHasDynamicCreativeOptimizationAdsets=A;f.getID=B;f.setID=C;f.getIsAutobid=D;f.setIsAutobid=E;f.getIsAveragePricePacing=F;f.setIsAveragePricePacing=G;f.getIsJobOpeningPost=H;f.setIsJobOpeningPost=I;f.getLifetimeBudget=J;f.setLifetimeBudget=K;f.getLifetimeSpent=L;f.setLifetimeSpent=M;f.getName=N;f.setName=O;f.getObjective=P;f.setObjective=Q;f.getPacingType=R;f.setPacingType=S;f.getRegulatedCategory=T;f.setRegulatedCategory=U;f.getSmartPromotionType=V;f.setSmartPromotionType=W;f.getSpendCap=X;f.setSpendCap=Y;f.getSplitTestStatus=Z;f.setSplitTestStatus=$;f.getStartTime=aa;f.setStartTime=ba;f.getStatus=ca;f.setStatus=da;f.getStopTime=ea;f.setStopTime=fa;f.getStudyIDs=ga;f.setStudyIDs=ha;f.getUpdatedTime=ia;f.setUpdatedTime=ja;f.getPromotedObject=ka;f.setPromotedObject=la;f.getBrandLiftStudies=ma;f.setBrandLiftStudies=na;f.getSplitTestConfig=oa;f.setSplitTestConfig=pa;f.getAdLabels=qa;f.setAdLabels=ra}),null); __d("AdsCampaignGroup.bs",["FBOption.bs","bs_js_primitive","AdsCampaignGroupImpl.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("AdsCampaignGroupImpl.bs").getAdAccountID;function a(a,c){return b("AdsCampaignGroupImpl.bs").setAdAccountID(b("bs_js_primitive").some(a),c)}function c(a){return b("AdsCampaignGroupImpl.bs").setAdAccountID(void 0,a)}function d(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getAdAccountID(c));return b("AdsCampaignGroupImpl.bs").setAdAccountID(a,c)}var h=b("AdsCampaignGroupImpl.bs").getBidStrategy;function e(a,c){return b("AdsCampaignGroupImpl.bs").setBidStrategy(b("bs_js_primitive").some(a),c)}function i(a){return b("AdsCampaignGroupImpl.bs").setBidStrategy(void 0,a)}function j(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getBidStrategy(c));return b("AdsCampaignGroupImpl.bs").setBidStrategy(a,c)}var k=b("AdsCampaignGroupImpl.bs").getBoostedComponentClientAppID;function l(a,c){return b("AdsCampaignGroupImpl.bs").setBoostedComponentClientAppID(b("bs_js_primitive").some(a),c)}function m(a){return b("AdsCampaignGroupImpl.bs").setBoostedComponentClientAppID(void 0,a)}function n(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getBoostedComponentClientAppID(c));return b("AdsCampaignGroupImpl.bs").setBoostedComponentClientAppID(a,c)}var o=b("AdsCampaignGroupImpl.bs").getBoostedComponentProduct;function p(a,c){return b("AdsCampaignGroupImpl.bs").setBoostedComponentProduct(b("bs_js_primitive").some(a),c)}function q(a){return b("AdsCampaignGroupImpl.bs").setBoostedComponentProduct(void 0,a)}function r(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getBoostedComponentProduct(c));return b("AdsCampaignGroupImpl.bs").setBoostedComponentProduct(a,c)}var s=b("AdsCampaignGroupImpl.bs").getBoostedPageID;function t(a,c){return b("AdsCampaignGroupImpl.bs").setBoostedPageID(b("bs_js_primitive").some(a),c)}function u(a){return b("AdsCampaignGroupImpl.bs").setBoostedPageID(void 0,a)}function v(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getBoostedPageID(c));return b("AdsCampaignGroupImpl.bs").setBoostedPageID(a,c)}var w=b("AdsCampaignGroupImpl.bs").getBudgetRemaining;function x(a,c){return b("AdsCampaignGroupImpl.bs").setBudgetRemaining(b("bs_js_primitive").some(a),c)}function y(a){return b("AdsCampaignGroupImpl.bs").setBudgetRemaining(void 0,a)}function z(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getBudgetRemaining(c));return b("AdsCampaignGroupImpl.bs").setBudgetRemaining(a,c)}var A=b("AdsCampaignGroupImpl.bs").getBuyingType;function B(a,c){return b("AdsCampaignGroupImpl.bs").setBuyingType(b("bs_js_primitive").some(a),c)}function C(a){return b("AdsCampaignGroupImpl.bs").setBuyingType(void 0,a)}function D(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getBuyingType(c));return b("AdsCampaignGroupImpl.bs").setBuyingType(a,c)}var E=b("AdsCampaignGroupImpl.bs").getCanUseSpendCap;function F(a,c){return b("AdsCampaignGroupImpl.bs").setCanUseSpendCap(a,c)}function G(a){return b("AdsCampaignGroupImpl.bs").setCanUseSpendCap(void 0,a)}function H(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getCanUseSpendCap(c));return b("AdsCampaignGroupImpl.bs").setCanUseSpendCap(a,c)}var I=b("AdsCampaignGroupImpl.bs").getCreatedTime;function J(a,c){return b("AdsCampaignGroupImpl.bs").setCreatedTime(b("bs_js_primitive").some(a),c)}function K(a){return b("AdsCampaignGroupImpl.bs").setCreatedTime(void 0,a)}function L(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getCreatedTime(c));return b("AdsCampaignGroupImpl.bs").setCreatedTime(a,c)}var M=b("AdsCampaignGroupImpl.bs").getDailyBudget;function N(a,c){return b("AdsCampaignGroupImpl.bs").setDailyBudget(b("bs_js_primitive").some(a),c)}function O(a){return b("AdsCampaignGroupImpl.bs").setDailyBudget(void 0,a)}function P(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getDailyBudget(c));return b("AdsCampaignGroupImpl.bs").setDailyBudget(a,c)}var Q=b("AdsCampaignGroupImpl.bs").getEffectiveStatus;function R(a,c){return b("AdsCampaignGroupImpl.bs").setEffectiveStatus(b("bs_js_primitive").some(a),c)}function S(a){return b("AdsCampaignGroupImpl.bs").setEffectiveStatus(void 0,a)}function T(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getEffectiveStatus(c));return b("AdsCampaignGroupImpl.bs").setEffectiveStatus(a,c)}var U=b("AdsCampaignGroupImpl.bs").getHasDynamicCreativeOptimizationAdsets;function V(a,c){return b("AdsCampaignGroupImpl.bs").setHasDynamicCreativeOptimizationAdsets(a,c)}function W(a){return b("AdsCampaignGroupImpl.bs").setHasDynamicCreativeOptimizationAdsets(void 0,a)}function X(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getHasDynamicCreativeOptimizationAdsets(c));return b("AdsCampaignGroupImpl.bs").setHasDynamicCreativeOptimizationAdsets(a,c)}var Y=b("AdsCampaignGroupImpl.bs").getID;function Z(a,c){return b("AdsCampaignGroupImpl.bs").setID(b("bs_js_primitive").some(a),c)}function $(a){return b("AdsCampaignGroupImpl.bs").setID(void 0,a)}function aa(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getID(c));return b("AdsCampaignGroupImpl.bs").setID(a,c)}var ba=b("AdsCampaignGroupImpl.bs").getIsAutobid;function ca(a,c){return b("AdsCampaignGroupImpl.bs").setIsAutobid(a,c)}function da(a){return b("AdsCampaignGroupImpl.bs").setIsAutobid(void 0,a)}function ea(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getIsAutobid(c));return b("AdsCampaignGroupImpl.bs").setIsAutobid(a,c)}var fa=b("AdsCampaignGroupImpl.bs").getIsAveragePricePacing;function ga(a,c){return b("AdsCampaignGroupImpl.bs").setIsAveragePricePacing(a,c)}function ha(a){return b("AdsCampaignGroupImpl.bs").setIsAveragePricePacing(void 0,a)}function ia(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getIsAveragePricePacing(c));return b("AdsCampaignGroupImpl.bs").setIsAveragePricePacing(a,c)}var ja=b("AdsCampaignGroupImpl.bs").getIsJobOpeningPost;function ka(a,c){return b("AdsCampaignGroupImpl.bs").setIsJobOpeningPost(a,c)}function la(a){return b("AdsCampaignGroupImpl.bs").setIsJobOpeningPost(void 0,a)}function ma(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getIsJobOpeningPost(c));return b("AdsCampaignGroupImpl.bs").setIsJobOpeningPost(a,c)}var na=b("AdsCampaignGroupImpl.bs").getLifetimeBudget;function oa(a,c){return b("AdsCampaignGroupImpl.bs").setLifetimeBudget(b("bs_js_primitive").some(a),c)}function pa(a){return b("AdsCampaignGroupImpl.bs").setLifetimeBudget(void 0,a)}function qa(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getLifetimeBudget(c));return b("AdsCampaignGroupImpl.bs").setLifetimeBudget(a,c)}var ra=b("AdsCampaignGroupImpl.bs").getLifetimeSpent;function sa(a,c){return b("AdsCampaignGroupImpl.bs").setLifetimeSpent(b("bs_js_primitive").some(a),c)}function ta(a){return b("AdsCampaignGroupImpl.bs").setLifetimeSpent(void 0,a)}function ua(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getLifetimeSpent(c));return b("AdsCampaignGroupImpl.bs").setLifetimeSpent(a,c)}var va=b("AdsCampaignGroupImpl.bs").getName;function wa(a,c){return b("AdsCampaignGroupImpl.bs").setName(a,c)}function xa(a){return b("AdsCampaignGroupImpl.bs").setName(void 0,a)}function ya(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getName(c));return b("AdsCampaignGroupImpl.bs").setName(a,c)}var za=b("AdsCampaignGroupImpl.bs").getObjective;function Aa(a,c){return b("AdsCampaignGroupImpl.bs").setObjective(b("bs_js_primitive").some(a),c)}function Ba(a){return b("AdsCampaignGroupImpl.bs").setObjective(void 0,a)}function Ca(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getObjective(c));return b("AdsCampaignGroupImpl.bs").setObjective(a,c)}var Da=b("AdsCampaignGroupImpl.bs").getPacingType;function Ea(a,c){return b("AdsCampaignGroupImpl.bs").setPacingType(a,c)}function Fa(a){return b("AdsCampaignGroupImpl.bs").setPacingType(void 0,a)}function Ga(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getPacingType(c));return b("AdsCampaignGroupImpl.bs").setPacingType(a,c)}var Ha=b("AdsCampaignGroupImpl.bs").getRegulatedCategory;function Ia(a,c){return b("AdsCampaignGroupImpl.bs").setRegulatedCategory(b("bs_js_primitive").some(a),c)}function Ja(a){return b("AdsCampaignGroupImpl.bs").setRegulatedCategory(void 0,a)}function Ka(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getRegulatedCategory(c));return b("AdsCampaignGroupImpl.bs").setRegulatedCategory(a,c)}var La=b("AdsCampaignGroupImpl.bs").getSmartPromotionType;function Ma(a,c){return b("AdsCampaignGroupImpl.bs").setSmartPromotionType(b("bs_js_primitive").some(a),c)}function Na(a){return b("AdsCampaignGroupImpl.bs").setSmartPromotionType(void 0,a)}function Oa(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getSmartPromotionType(c));return b("AdsCampaignGroupImpl.bs").setSmartPromotionType(a,c)}var Pa=b("AdsCampaignGroupImpl.bs").getSpendCap;function Qa(a,c){return b("AdsCampaignGroupImpl.bs").setSpendCap(b("bs_js_primitive").some(a),c)}function Ra(a){return b("AdsCampaignGroupImpl.bs").setSpendCap(void 0,a)}function Sa(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getSpendCap(c));return b("AdsCampaignGroupImpl.bs").setSpendCap(a,c)}var Ta=b("AdsCampaignGroupImpl.bs").getSplitTestStatus;function Ua(a,c){return b("AdsCampaignGroupImpl.bs").setSplitTestStatus(b("bs_js_primitive").some(a),c)}function Va(a){return b("AdsCampaignGroupImpl.bs").setSplitTestStatus(void 0,a)}function Wa(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getSplitTestStatus(c));return b("AdsCampaignGroupImpl.bs").setSplitTestStatus(a,c)}var Xa=b("AdsCampaignGroupImpl.bs").getStartTime;function Ya(a,c){return b("AdsCampaignGroupImpl.bs").setStartTime(b("bs_js_primitive").some(a),c)}function Za(a){return b("AdsCampaignGroupImpl.bs").setStartTime(void 0,a)}function $a(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getStartTime(c));return b("AdsCampaignGroupImpl.bs").setStartTime(a,c)}var ab=b("AdsCampaignGroupImpl.bs").getStatus;function bb(a,c){return b("AdsCampaignGroupImpl.bs").setStatus(b("bs_js_primitive").some(a),c)}function cb(a){return b("AdsCampaignGroupImpl.bs").setStatus(void 0,a)}function db(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getStatus(c));return b("AdsCampaignGroupImpl.bs").setStatus(a,c)}var eb=b("AdsCampaignGroupImpl.bs").getStopTime;function fb(a,c){return b("AdsCampaignGroupImpl.bs").setStopTime(b("bs_js_primitive").some(a),c)}function gb(a){return b("AdsCampaignGroupImpl.bs").setStopTime(void 0,a)}function hb(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getStopTime(c));return b("AdsCampaignGroupImpl.bs").setStopTime(a,c)}var ib=b("AdsCampaignGroupImpl.bs").getStudyIDs;function jb(a,c){return b("AdsCampaignGroupImpl.bs").setStudyIDs(a,c)}function kb(a){return b("AdsCampaignGroupImpl.bs").setStudyIDs(void 0,a)}function lb(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getStudyIDs(c));return b("AdsCampaignGroupImpl.bs").setStudyIDs(a,c)}var mb=b("AdsCampaignGroupImpl.bs").getUpdatedTime;function nb(a,c){return b("AdsCampaignGroupImpl.bs").setUpdatedTime(b("bs_js_primitive").some(a),c)}function ob(a){return b("AdsCampaignGroupImpl.bs").setUpdatedTime(void 0,a)}function pb(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getUpdatedTime(c));return b("AdsCampaignGroupImpl.bs").setUpdatedTime(a,c)}var qb=b("AdsCampaignGroupImpl.bs").getPromotedObject;function rb(a,c){return b("AdsCampaignGroupImpl.bs").setPromotedObject(b("bs_js_primitive").some(a),c)}function sb(a){return b("AdsCampaignGroupImpl.bs").setPromotedObject(void 0,a)}function tb(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getPromotedObject(c));return b("AdsCampaignGroupImpl.bs").setPromotedObject(a,c)}var ub=b("AdsCampaignGroupImpl.bs").getBrandLiftStudies;function vb(a,c){return b("AdsCampaignGroupImpl.bs").setBrandLiftStudies(a,c)}function wb(a){return b("AdsCampaignGroupImpl.bs").setBrandLiftStudies(void 0,a)}function xb(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getBrandLiftStudies(c));return b("AdsCampaignGroupImpl.bs").setBrandLiftStudies(a,c)}var yb=b("AdsCampaignGroupImpl.bs").getSplitTestConfig;function zb(a,c){return b("AdsCampaignGroupImpl.bs").setSplitTestConfig(b("bs_js_primitive").some(a),c)}function Ab(a){return b("AdsCampaignGroupImpl.bs").setSplitTestConfig(void 0,a)}function Bb(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getSplitTestConfig(c));return b("AdsCampaignGroupImpl.bs").setSplitTestConfig(a,c)}var Cb=b("AdsCampaignGroupImpl.bs").getAdLabels;function Db(a,c){return b("AdsCampaignGroupImpl.bs").setAdLabels(a,c)}function Eb(a){return b("AdsCampaignGroupImpl.bs").setAdLabels(void 0,a)}function Fb(a,c){a=b("FBOption.bs").map(a,b("AdsCampaignGroupImpl.bs").getAdLabels(c));return b("AdsCampaignGroupImpl.bs").setAdLabels(a,c)}f.getAdAccountID=g;f.setAdAccountID=a;f.deleteAdAccountID=c;f.updateAdAccountID=d;f.getBidStrategy=h;f.setBidStrategy=e;f.deleteBidStrategy=i;f.updateBidStrategy=j;f.getBoostedComponentClientAppID=k;f.setBoostedComponentClientAppID=l;f.deleteBoostedComponentClientAppID=m;f.updateBoostedComponentClientAppID=n;f.getBoostedComponentProduct=o;f.setBoostedComponentProduct=p;f.deleteBoostedComponentProduct=q;f.updateBoostedComponentProduct=r;f.getBoostedPageID=s;f.setBoostedPageID=t;f.deleteBoostedPageID=u;f.updateBoostedPageID=v;f.getBudgetRemaining=w;f.setBudgetRemaining=x;f.deleteBudgetRemaining=y;f.updateBudgetRemaining=z;f.getBuyingType=A;f.setBuyingType=B;f.deleteBuyingType=C;f.updateBuyingType=D;f.getCanUseSpendCap=E;f.setCanUseSpendCap=F;f.deleteCanUseSpendCap=G;f.updateCanUseSpendCap=H;f.getCreatedTime=I;f.setCreatedTime=J;f.deleteCreatedTime=K;f.updateCreatedTime=L;f.getDailyBudget=M;f.setDailyBudget=N;f.deleteDailyBudget=O;f.updateDailyBudget=P;f.getEffectiveStatus=Q;f.setEffectiveStatus=R;f.deleteEffectiveStatus=S;f.updateEffectiveStatus=T;f.getHasDynamicCreativeOptimizationAdsets=U;f.setHasDynamicCreativeOptimizationAdsets=V;f.deleteHasDynamicCreativeOptimizationAdsets=W;f.updateHasDynamicCreativeOptimizationAdsets=X;f.getID=Y;f.setID=Z;f.deleteID=$;f.updateID=aa;f.getIsAutobid=ba;f.setIsAutobid=ca;f.deleteIsAutobid=da;f.updateIsAutobid=ea;f.getIsAveragePricePacing=fa;f.setIsAveragePricePacing=ga;f.deleteIsAveragePricePacing=ha;f.updateIsAveragePricePacing=ia;f.getIsJobOpeningPost=ja;f.setIsJobOpeningPost=ka;f.deleteIsJobOpeningPost=la;f.updateIsJobOpeningPost=ma;f.getLifetimeBudget=na;f.setLifetimeBudget=oa;f.deleteLifetimeBudget=pa;f.updateLifetimeBudget=qa;f.getLifetimeSpent=ra;f.setLifetimeSpent=sa;f.deleteLifetimeSpent=ta;f.updateLifetimeSpent=ua;f.getName=va;f.setName=wa;f.deleteName=xa;f.updateName=ya;f.getObjective=za;f.setObjective=Aa;f.deleteObjective=Ba;f.updateObjective=Ca;f.getPacingType=Da;f.setPacingType=Ea;f.deletePacingType=Fa;f.updatePacingType=Ga;f.getRegulatedCategory=Ha;f.setRegulatedCategory=Ia;f.deleteRegulatedCategory=Ja;f.updateRegulatedCategory=Ka;f.getSmartPromotionType=La;f.setSmartPromotionType=Ma;f.deleteSmartPromotionType=Na;f.updateSmartPromotionType=Oa;f.getSpendCap=Pa;f.setSpendCap=Qa;f.deleteSpendCap=Ra;f.updateSpendCap=Sa;f.getSplitTestStatus=Ta;f.setSplitTestStatus=Ua;f.deleteSplitTestStatus=Va;f.updateSplitTestStatus=Wa;f.getStartTime=Xa;f.setStartTime=Ya;f.deleteStartTime=Za;f.updateStartTime=$a;f.getStatus=ab;f.setStatus=bb;f.deleteStatus=cb;f.updateStatus=db;f.getStopTime=eb;f.setStopTime=fb;f.deleteStopTime=gb;f.updateStopTime=hb;f.getStudyIDs=ib;f.setStudyIDs=jb;f.deleteStudyIDs=kb;f.updateStudyIDs=lb;f.getUpdatedTime=mb;f.setUpdatedTime=nb;f.deleteUpdatedTime=ob;f.updateUpdatedTime=pb;f.getPromotedObject=qb;f.setPromotedObject=rb;f.deletePromotedObject=sb;f.updatePromotedObject=tb;f.getBrandLiftStudies=ub;f.setBrandLiftStudies=vb;f.deleteBrandLiftStudies=wb;f.updateBrandLiftStudies=xb;f.getSplitTestConfig=yb;f.setSplitTestConfig=zb;f.deleteSplitTestConfig=Ab;f.updateSplitTestConfig=Bb;f.getAdLabels=Cb;f.setAdLabels=Db;f.deleteAdLabels=Eb;f.updateAdLabels=Fb}),null); __d("AdsCreativeImpl.bs",["bs_js_primitive","AdsDataModelUtils.bs","bs_js_null_undefined"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g={id:null,object_id:null,object_type:null,product_set_id:null,object_story_spec:null};function a(a){return b("bs_js_primitive").nullable_to_opt(a.id)}function c(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{id:b("bs_js_null_undefined").fromOption(a)})}function d(a){return b("bs_js_primitive").nullable_to_opt(a.object_id)}function e(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{object_id:b("bs_js_null_undefined").fromOption(a)})}function h(a){return b("bs_js_primitive").nullable_to_opt(a.object_type)}function i(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{object_type:b("bs_js_null_undefined").fromOption(a)})}function j(a){return b("bs_js_primitive").nullable_to_opt(a.product_set_id)}function k(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{product_set_id:b("bs_js_null_undefined").fromOption(a)})}function l(a){return b("bs_js_primitive").nullable_to_opt(a.object_story_spec)}function m(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{object_story_spec:b("bs_js_null_undefined").fromOption(a)})}f.empty=g;f.getID=a;f.setID=c;f.getObjectID=d;f.setObjectID=e;f.getObjectType=h;f.setObjectType=i;f.getProductSetID=j;f.setProductSetID=k;f.getObjectStorySpec=l;f.setObjectStorySpec=m}),null); __d("AdsCreative.bs",["FBOption.bs","bs_js_primitive","AdsCreativeImpl.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("AdsCreativeImpl.bs").getID;function a(a,c){return b("AdsCreativeImpl.bs").setID(b("bs_js_primitive").some(a),c)}function c(a){return b("AdsCreativeImpl.bs").setID(void 0,a)}function d(a,c){a=b("FBOption.bs").map(a,b("AdsCreativeImpl.bs").getID(c));return b("AdsCreativeImpl.bs").setID(a,c)}var h=b("AdsCreativeImpl.bs").getObjectID;function e(a,c){return b("AdsCreativeImpl.bs").setObjectID(b("bs_js_primitive").some(a),c)}function i(a){return b("AdsCreativeImpl.bs").setObjectID(void 0,a)}function j(a,c){a=b("FBOption.bs").map(a,b("AdsCreativeImpl.bs").getObjectID(c));return b("AdsCreativeImpl.bs").setObjectID(a,c)}var k=b("AdsCreativeImpl.bs").getObjectType;function l(a,c){return b("AdsCreativeImpl.bs").setObjectType(b("bs_js_primitive").some(a),c)}function m(a){return b("AdsCreativeImpl.bs").setObjectType(void 0,a)}function n(a,c){a=b("FBOption.bs").map(a,b("AdsCreativeImpl.bs").getObjectType(c));return b("AdsCreativeImpl.bs").setObjectType(a,c)}var o=b("AdsCreativeImpl.bs").getProductSetID;function p(a,c){return b("AdsCreativeImpl.bs").setProductSetID(b("bs_js_primitive").some(a),c)}function q(a){return b("AdsCreativeImpl.bs").setProductSetID(void 0,a)}function r(a,c){a=b("FBOption.bs").map(a,b("AdsCreativeImpl.bs").getProductSetID(c));return b("AdsCreativeImpl.bs").setProductSetID(a,c)}var s=b("AdsCreativeImpl.bs").getObjectStorySpec;function t(a,c){return b("AdsCreativeImpl.bs").setObjectStorySpec(b("bs_js_primitive").some(a),c)}function u(a){return b("AdsCreativeImpl.bs").setObjectStorySpec(void 0,a)}function v(a,c){a=b("FBOption.bs").map(a,b("AdsCreativeImpl.bs").getObjectStorySpec(c));return b("AdsCreativeImpl.bs").setObjectStorySpec(a,c)}f.getID=g;f.setID=a;f.deleteID=c;f.updateID=d;f.getObjectID=h;f.setObjectID=e;f.deleteObjectID=i;f.updateObjectID=j;f.getObjectType=k;f.setObjectType=l;f.deleteObjectType=m;f.updateObjectType=n;f.getProductSetID=o;f.setProductSetID=p;f.deleteProductSetID=q;f.updateProductSetID=r;f.getObjectStorySpec=s;f.setObjectStorySpec=t;f.deleteObjectStorySpec=u;f.updateObjectStorySpec=v}),null); __d("AdsEnum_Objective.bs",["AdsAPIObjectives"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=b("AdsAPIObjectives").APP_INSTALLS;c=b("AdsAPIObjectives").BRAND_AWARENESS;d=b("AdsAPIObjectives").CANVAS_APP_ENGAGEMENT;e=b("AdsAPIObjectives").CANVAS_APP_INSTALLS;var g=b("AdsAPIObjectives").CONVERSIONS,h=b("AdsAPIObjectives").DEPRECATED_CLICKS,i=b("AdsAPIObjectives").EVENT_RESPONSES,j=b("AdsAPIObjectives").EXTERNAL,k=b("AdsAPIObjectives").IMPRESSIONS,l=b("AdsAPIObjectives").INCOMPATIBLE_CANVAS_APP_ENGAGEMENT,m=b("AdsAPIObjectives").INCOMPATIBLE_CANVAS_APP_INSTALLS,n=b("AdsAPIObjectives").INCOMPATIBLE_EVENT_RESPONSES,o=b("AdsAPIObjectives").INCOMPATIBLE_MOBILE_APP_INSTALLS,p=b("AdsAPIObjectives").INCOMPATIBLE_OFFER_CLAIMS,q=b("AdsAPIObjectives").INCOMPATIBLE_PAGE_ENGAGEMENT,r=b("AdsAPIObjectives").INCOMPATIBLE_PAGE_LIKES,s=b("AdsAPIObjectives").INCOMPATIBLE_POST_ENGAGEMENT,t=b("AdsAPIObjectives").INCOMPATIBLE_WEBSITE_CLICKS,u=b("AdsAPIObjectives").INCOMPATIBLE_WEBSITE_CONVERSIONS,v=b("AdsAPIObjectives").INSTAGRAM_BRAND_AWARENESS,w=b("AdsAPIObjectives").LEAD_GENERATION,x=b("AdsAPIObjectives").LINK_CLICKS,y=b("AdsAPIObjectives").LOCAL_AWARENESS,z=b("AdsAPIObjectives").LOCAL_IMPRESSIONS,A=b("AdsAPIObjectives").MEDIA_DOWNLOADS,B=b("AdsAPIObjectives").MESSAGES,C=b("AdsAPIObjectives").MILLE,D=b("AdsAPIObjectives").MOBILE_APP_ENGAGEMENT,E=b("AdsAPIObjectives").MOBILE_APP_INSTALLS,F=b("AdsAPIObjectives").MULTIPLE,G=b("AdsAPIObjectives").NONE,H=b("AdsAPIObjectives").OFFER_CLAIMS,I=b("AdsAPIObjectives").PAGE_LIKES,J=b("AdsAPIObjectives").POST_ENGAGEMENT,K=b("AdsAPIObjectives").PRODUCT_CATALOG_SALES,L=b("AdsAPIObjectives").REACH,M=b("AdsAPIObjectives").RESEARCH_POLL,N=b("AdsAPIObjectives").STORE_VISITS,O=b("AdsAPIObjectives").VIDEO_VIEWS,P=b("AdsAPIObjectives").WEBSITE_CONVERSIONS,Q=b("AdsAPIObjectives").WILDCARD_INTERNAL_ONLY;b=b("AdsAPIObjectives").XPLATFORM_SALES;f.app_installs=a;f.brand_awareness=c;f.canvas_app_engagement=d;f.canvas_app_installs=e;f.conversions=g;f.deprecated_clicks=h;f.event_responses=i;f.external_=j;f.impressions=k;f.incompatible_canvas_app_engagement=l;f.incompatible_canvas_app_installs=m;f.incompatible_event_responses=n;f.incompatible_mobile_app_installs=o;f.incompatible_offer_claims=p;f.incompatible_page_engagement=q;f.incompatible_page_likes=r;f.incompatible_post_engagement=s;f.incompatible_website_clicks=t;f.incompatible_website_conversions=u;f.instagram_brand_awareness=v;f.lead_generation=w;f.link_clicks=x;f.local_awareness=y;f.local_impressions=z;f.media_downloads=A;f.messages=B;f.mille=C;f.mobile_app_engagement=D;f.mobile_app_installs=E;f.multiple=F;f.none=G;f.offer_claims=H;f.page_likes=I;f.post_engagement=J;f.product_catalog_sales=K;f.reach=L;f.research_poll=M;f.store_visits=N;f.video_views=O;f.website_conversions=P;f.wildcard_internal_only=Q;f.xplatform_sales=b}),null); __d("AdsEnum_OptimizationGoal.bs",["AdsAPIOptimizationGoals"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=b("AdsAPIOptimizationGoals").NONE;c=b("AdsAPIOptimizationGoals").APP_INSTALLS;d=b("AdsAPIOptimizationGoals").BRAND_AWARENESS;e=b("AdsAPIOptimizationGoals").AD_RECALL_LIFT;var g=b("AdsAPIOptimizationGoals").CLICKS,h=b("AdsAPIOptimizationGoals").ENGAGED_USERS,i=b("AdsAPIOptimizationGoals").DWELLS,j=b("AdsAPIOptimizationGoals").EVENT_RESPONSES,k=b("AdsAPIOptimizationGoals").IMPRESSIONS,l=b("AdsAPIOptimizationGoals").LEAD_GENERATION,m=b("AdsAPIOptimizationGoals").LINK_CLICKS,n=b("AdsAPIOptimizationGoals").MEDIA_DOWNLOADS,o=b("AdsAPIOptimizationGoals").OFFER_CLAIMS,p=b("AdsAPIOptimizationGoals").OFFSITE_CONVERSIONS,q=b("AdsAPIOptimizationGoals").PAGE_ENGAGEMENT,r=b("AdsAPIOptimizationGoals").PAGE_LIKES,s=b("AdsAPIOptimizationGoals").PAGE_FOLLOWS,t=b("AdsAPIOptimizationGoals").POST_ENGAGEMENT,u=b("AdsAPIOptimizationGoals").REACH,v=b("AdsAPIOptimizationGoals").RESEARCH_POLL_RESPONSES,w=b("AdsAPIOptimizationGoals").RETENTION,x=b("AdsAPIOptimizationGoals").RETURN_ON_AD_SPEND,y=b("AdsAPIOptimizationGoals").SOCIAL_IMPRESSIONS,z=b("AdsAPIOptimizationGoals").STORE_VISITS,A=b("AdsAPIOptimizationGoals").VIDEO_VIEWS,B=b("AdsAPIOptimizationGoals").ENGAGED_REACH,C=b("AdsAPIOptimizationGoals").APP_DOWNLOADS,D=b("AdsAPIOptimizationGoals").VIDEO_LONG_VIEWS,E=b("AdsAPIOptimizationGoals").TWO_SECOND_CONTINUOUS_VIDEO_VIEWS,F=b("AdsAPIOptimizationGoals").OFFLINE_CONVERSIONS,G=b("AdsAPIOptimizationGoals").LANDING_PAGE_VIEWS,H=b("AdsAPIOptimizationGoals").VALUE,I=b("AdsAPIOptimizationGoals").COMPLETED_VIDEO_VIEWS,J=b("AdsAPIOptimizationGoals").THRUPLAY,K=b("AdsAPIOptimizationGoals").REPLIES,L=b("AdsAPIOptimizationGoals").ONSITE_CONVERSIONS,M=b("AdsAPIOptimizationGoals").DERIVED_EVENTS,N=b("AdsAPIOptimizationGoals").INCREMENTAL_OFFSITE_CONVERSIONS;b=b("AdsAPIOptimizationGoals").EXTERNAL;f.none=a;f.app_installs=c;f.brand_awareness=d;f.ad_recall_lift=e;f.clicks=g;f.engaged_users=h;f.dwells=i;f.event_responses=j;f.impressions=k;f.lead_generation=l;f.link_clicks=m;f.media_downloads=n;f.offer_claims=o;f.offsite_conversions=p;f.page_engagement=q;f.page_likes=r;f.page_follows=s;f.post_engagement=t;f.reach=u;f.research_poll_responses=v;f.retention=w;f.return_on_ad_spend=x;f.social_impressions=y;f.store_visits=z;f.video_views=A;f.engaged_reach=B;f.app_downloads=C;f.video_long_views=D;f.two_second_continuous_video_views=E;f.offline_conversions=F;f.landing_page_views=G;f.value=H;f.completed_video_views=I;f.thruplay=J;f.replies=K;f.onsite_conversions=L;f.derived_events=M;f.incremental_offsite_conversions=N;f.external_=b}),null); __d("AdsValidators.bs",[],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(){return!0}d=[a];function b(){return!0}e=[b];function c(){return!0}a=[c];f.DefaultAdgroupValidator=d;f.DefaultCampaignValidator=e;f.DefaultCampaignGroupValidator=a}),null); __d("AdsAdgroupDURValidator.bs",["bs_curry","bs_caml_obj","FBOption.bs","AdsAdgroup.bs","AdsCampaign.bs","AdsCreative.bs","AdsValidators.bs","AdsCampaignGroup.bs","AdsEnum_Objective.bs","AdsAdgroupValidator.bs","AdsEnum_OptimizationGoal.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){var c=b("FBOption.bs").flatMap(b("AdsCreative.bs").getObjectType,b("AdsAdgroup.bs").getCreative(a[0])),d=b("AdsCampaign.bs").getOptimizationGoal(a[1]);a=b("AdsCampaignGroup.bs").getObjective(a[2]);return b("FBOption.bs").map3(function(a,b,c){return[a,b,c]},c,d,a)}function c(a,c){if(b("bs_caml_obj").caml_equal(c[1],b("AdsEnum_OptimizationGoal.bs").reach)&&b("bs_caml_obj").caml_equal(c[2],b("AdsEnum_Objective.bs").video_views))return b("bs_curry")._3(a[0],void 0,void 0,44);else return 0}d=b("bs_curry")._1(b("AdsAdgroupValidator.bs").Make,["AdsAdgroupDURValidator",b("AdsValidators.bs").DefaultAdgroupValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsDataModelUtils",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){return a[b]}e.exports={unsafeGet:a}}),null); __d("AdsCallToActionImpl.bs",["bs_js_primitive","AdsDataModelUtils.bs","AdsDataModelUtils","bs_js_null_undefined"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g={type:null,value:null};function a(a){return b("bs_js_primitive").nullable_to_opt(b("AdsDataModelUtils").unsafeGet(a,"type"))}function c(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{type:b("bs_js_null_undefined").fromOption(a)})}function d(a){return b("bs_js_primitive").nullable_to_opt(a.value)}function e(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{value:b("bs_js_null_undefined").fromOption(a)})}f.empty=g;f.getType=a;f.setType=c;f.getValue=d;f.setValue=e}),null); __d("AdsCallToAction.bs",["FBOption.bs","bs_js_primitive","AdsCallToActionImpl.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("AdsCallToActionImpl.bs").getType;function a(a,c){return b("AdsCallToActionImpl.bs").setType(b("bs_js_primitive").some(a),c)}function c(a){return b("AdsCallToActionImpl.bs").setType(void 0,a)}function d(a,c){a=b("FBOption.bs").map(a,b("AdsCallToActionImpl.bs").getType(c));return b("AdsCallToActionImpl.bs").setType(a,c)}var h=b("AdsCallToActionImpl.bs").getValue;function e(a,c){return b("AdsCallToActionImpl.bs").setValue(b("bs_js_primitive").some(a),c)}function i(a){return b("AdsCallToActionImpl.bs").setValue(void 0,a)}function j(a,c){a=b("FBOption.bs").map(a,b("AdsCallToActionImpl.bs").getValue(c));return b("AdsCallToActionImpl.bs").setValue(a,c)}f.getType=g;f.setType=a;f.deleteType=c;f.updateType=d;f.getValue=h;f.setValue=e;f.deleteValue=i;f.updateValue=j}),null); __d("AdsCallToActionValueImpl.bs",["bs_js_primitive","AdsDataModelUtils.bs","bs_js_null_undefined"],(function(a,b,c,d,e,f){"use strict";d={link:null};function a(a){return b("bs_js_primitive").nullable_to_opt(a.link)}function c(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{link:b("bs_js_null_undefined").fromOption(a)})}f.empty=d;f.getLink=a;f.setLink=c}),null); __d("AdsCallToActionValue.bs",["FBOption.bs","AdsCallToActionValueImpl.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();e=b("AdsCallToActionValueImpl.bs").getLink;function a(a,c){return b("AdsCallToActionValueImpl.bs").setLink(a,c)}function c(a){return b("AdsCallToActionValueImpl.bs").setLink(void 0,a)}function d(a,c){a=b("FBOption.bs").map(a,b("AdsCallToActionValueImpl.bs").getLink(c));return b("AdsCallToActionValueImpl.bs").setLink(a,c)}f.getLink=e;f.setLink=a;f.deleteLink=c;f.updateLink=d}),null); __d("AdsObjectStorySpecImpl.bs",["bs_js_primitive","AdsDataModelUtils.bs","bs_js_null_undefined"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g={link_data:null,video_data:null};function a(a){return b("bs_js_primitive").nullable_to_opt(a.link_data)}function c(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{link_data:b("bs_js_null_undefined").fromOption(a)})}function d(a){return b("bs_js_primitive").nullable_to_opt(a.video_data)}function e(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{video_data:b("bs_js_null_undefined").fromOption(a)})}f.empty=g;f.getLinkData=a;f.setLinkData=c;f.getVideoData=d;f.setVideoData=e}),null); __d("AdsObjectStorySpec.bs",["FBOption.bs","bs_js_primitive","AdsObjectStorySpecImpl.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("AdsObjectStorySpecImpl.bs").getLinkData;function a(a,c){return b("AdsObjectStorySpecImpl.bs").setLinkData(b("bs_js_primitive").some(a),c)}function c(a){return b("AdsObjectStorySpecImpl.bs").setLinkData(void 0,a)}function d(a,c){a=b("FBOption.bs").map(a,b("AdsObjectStorySpecImpl.bs").getLinkData(c));return b("AdsObjectStorySpecImpl.bs").setLinkData(a,c)}var h=b("AdsObjectStorySpecImpl.bs").getVideoData;function e(a,c){return b("AdsObjectStorySpecImpl.bs").setVideoData(b("bs_js_primitive").some(a),c)}function i(a){return b("AdsObjectStorySpecImpl.bs").setVideoData(void 0,a)}function j(a,c){a=b("FBOption.bs").map(a,b("AdsObjectStorySpecImpl.bs").getVideoData(c));return b("AdsObjectStorySpecImpl.bs").setVideoData(a,c)}f.getLinkData=g;f.setLinkData=a;f.deleteLinkData=c;f.updateLinkData=d;f.getVideoData=h;f.setVideoData=e;f.deleteVideoData=i;f.updateVideoData=j}),null); __d("AdsObjectStorySpecLinkDataImpl.bs",["bs_js_primitive","AdsDataModelUtils.bs","bs_js_null_undefined"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g={link:null,retailer_item_ids:null,call_to_action:null};function a(a){return b("bs_js_primitive").nullable_to_opt(a.link)}function c(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{link:b("bs_js_null_undefined").fromOption(a)})}function d(a){return b("bs_js_primitive").nullable_to_opt(a.retailer_item_ids)}function e(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{retailer_item_ids:b("bs_js_null_undefined").fromOption(a)})}function h(a){return b("bs_js_primitive").nullable_to_opt(a.call_to_action)}function i(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{call_to_action:b("bs_js_null_undefined").fromOption(a)})}f.empty=g;f.getLink=a;f.setLink=c;f.getRetailerItemIDs=d;f.setRetailerItemIDs=e;f.getCallToAction=h;f.setCallToAction=i}),null); __d("AdsObjectStorySpecLinkData.bs",["FBOption.bs","bs_js_primitive","AdsObjectStorySpecLinkDataImpl.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("AdsObjectStorySpecLinkDataImpl.bs").getLink;function a(a,c){return b("AdsObjectStorySpecLinkDataImpl.bs").setLink(a,c)}function c(a){return b("AdsObjectStorySpecLinkDataImpl.bs").setLink(void 0,a)}function d(a,c){a=b("FBOption.bs").map(a,b("AdsObjectStorySpecLinkDataImpl.bs").getLink(c));return b("AdsObjectStorySpecLinkDataImpl.bs").setLink(a,c)}var h=b("AdsObjectStorySpecLinkDataImpl.bs").getRetailerItemIDs;function e(a,c){return b("AdsObjectStorySpecLinkDataImpl.bs").setRetailerItemIDs(a,c)}function i(a){return b("AdsObjectStorySpecLinkDataImpl.bs").setRetailerItemIDs(void 0,a)}function j(a,c){a=b("FBOption.bs").map(a,b("AdsObjectStorySpecLinkDataImpl.bs").getRetailerItemIDs(c));return b("AdsObjectStorySpecLinkDataImpl.bs").setRetailerItemIDs(a,c)}var k=b("AdsObjectStorySpecLinkDataImpl.bs").getCallToAction;function l(a,c){return b("AdsObjectStorySpecLinkDataImpl.bs").setCallToAction(b("bs_js_primitive").some(a),c)}function m(a){return b("AdsObjectStorySpecLinkDataImpl.bs").setCallToAction(void 0,a)}function n(a,c){a=b("FBOption.bs").map(a,b("AdsObjectStorySpecLinkDataImpl.bs").getCallToAction(c));return b("AdsObjectStorySpecLinkDataImpl.bs").setCallToAction(a,c)}f.getLink=g;f.setLink=a;f.deleteLink=c;f.updateLink=d;f.getRetailerItemIDs=h;f.setRetailerItemIDs=e;f.deleteRetailerItemIDs=i;f.updateRetailerItemIDs=j;f.getCallToAction=k;f.setCallToAction=l;f.deleteCallToAction=m;f.updateCallToAction=n}),null); __d("AdsObjectStorySpecVideoDataImpl.bs",["bs_js_primitive","AdsDataModelUtils.bs","bs_js_null_undefined"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g={retailer_item_ids:null,call_to_action:null};function a(a){return b("bs_js_primitive").nullable_to_opt(a.retailer_item_ids)}function c(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{retailer_item_ids:b("bs_js_null_undefined").fromOption(a)})}function d(a){return b("bs_js_primitive").nullable_to_opt(a.call_to_action)}function e(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{call_to_action:b("bs_js_null_undefined").fromOption(a)})}f.empty=g;f.getRetailerItemIDs=a;f.setRetailerItemIDs=c;f.getCallToAction=d;f.setCallToAction=e}),null); __d("AdsObjectStorySpecVideoData.bs",["FBOption.bs","bs_js_primitive","AdsObjectStorySpecVideoDataImpl.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("AdsObjectStorySpecVideoDataImpl.bs").getRetailerItemIDs;function a(a,c){return b("AdsObjectStorySpecVideoDataImpl.bs").setRetailerItemIDs(a,c)}function c(a){return b("AdsObjectStorySpecVideoDataImpl.bs").setRetailerItemIDs(void 0,a)}function d(a,c){a=b("FBOption.bs").map(a,b("AdsObjectStorySpecVideoDataImpl.bs").getRetailerItemIDs(c));return b("AdsObjectStorySpecVideoDataImpl.bs").setRetailerItemIDs(a,c)}var h=b("AdsObjectStorySpecVideoDataImpl.bs").getCallToAction;function e(a,c){return b("AdsObjectStorySpecVideoDataImpl.bs").setCallToAction(b("bs_js_primitive").some(a),c)}function i(a){return b("AdsObjectStorySpecVideoDataImpl.bs").setCallToAction(void 0,a)}function j(a,c){a=b("FBOption.bs").map(a,b("AdsObjectStorySpecVideoDataImpl.bs").getCallToAction(c));return b("AdsObjectStorySpecVideoDataImpl.bs").setCallToAction(a,c)}f.getRetailerItemIDs=g;f.setRetailerItemIDs=a;f.deleteRetailerItemIDs=c;f.updateRetailerItemIDs=d;f.getCallToAction=h;f.setCallToAction=e;f.deleteCallToAction=i;f.updateCallToAction=j}),null); __d("FBExceptions.bs",["bs_caml_exceptions"],(function(a,b,c,d,e,f){"use strict";a=b("bs_caml_exceptions").create("FBExceptions.Empty");c=b("bs_caml_exceptions").create("FBExceptions.IndexOutOfBoundsException");d=b("bs_caml_exceptions").create("FBExceptions.Unreachable");f.Empty=a;f.IndexOutOfBoundsException=c;f.Unreachable=d}),null); __d("FBImmutableList.bs",["bs_array","bs_curry","immutable","bs_caml_array","FBExceptions.bs","bs_js_primitive"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){return b("immutable").List(b("bs_array").of_list(a))}function c(a){return b("bs_array").to_list(a.toArray())}function d(a,c,d){if(a<0||a>=d.size)return void 0;else return b("bs_js_primitive").some(d.set(a,c))}function e(a,c,d){if(a<0||a>=d.size)throw[b("FBExceptions.bs").IndexOutOfBoundsException,"setIndexExn",a];else return d.set(a,c)}function g(a,c,d){if(a<0||a>=d.size)return void 0;else return b("bs_js_primitive").some(d.update(a,c))}function h(a,c,d){if(a<0||a>=d.size)throw[b("FBExceptions.bs").IndexOutOfBoundsException,"updateIndexExn",a];else return d.update(a,c)}function i(a,c){if(a<0||a>=c.size)return void 0;else return b("bs_js_primitive").some(c["delete"](a))}function j(a,c){if(a<0||a>=c.size)throw[b("FBExceptions.bs").IndexOutOfBoundsException,"deleteIndexExn",a];else return c["delete"](a)}function k(a,c,d){__p&&__p();if(a<0||a>d.size)return void 0;else{d=d.push(c);var e=d.toArray();d=b("bs_array").mapi(function(d,f){if(dd.size)throw[b("FBExceptions.bs").IndexOutOfBoundsException,"addIndexExn",a];else{a=k(a,c,d);if(a!==void 0)return b("bs_js_primitive").valFromOption(a);else throw[b("FBExceptions.bs").Unreachable,"addIndexExn"]}}function m(a){if(a.isEmpty())return void 0;else return b("bs_js_primitive").some(a.pop())}function n(a){if(a.isEmpty())throw[b("FBExceptions.bs").Empty,"removeLastExn"];else return a.pop()}function o(a){if(a.isEmpty())return void 0;else return b("bs_js_primitive").some(a.shift())}function p(a){if(a.isEmpty())throw[b("FBExceptions.bs").Empty,"removeFirstExn"];else return a.shift()}function q(a,c){if(a<0||a>=c.size)return void 0;else return b("bs_js_primitive").some(c.get(a))}function r(a,c){if(a<0||a>=c.size)throw[b("FBExceptions.bs").IndexOutOfBoundsException,"getIndexExn",a];else return c.get(a)}function s(a){if(a.isEmpty())return void 0;else return b("bs_js_primitive").some(a.first())}function t(a){if(a.isEmpty())throw[b("FBExceptions.bs").Empty,"getFirstExn"];else return a.first()}function u(a){if(a.isEmpty())return void 0;else return b("bs_js_primitive").some(a.last())}function v(a){if(a.isEmpty())throw[b("FBExceptions.bs").Empty,"getLastExn"];else return a.last()}function w(a,c){c.forEach(function(c,d,e){return b("bs_curry")._1(a,c)});return 0}function x(a,c){c.forEach(function(c,d,e){return b("bs_curry")._2(a,c,d)});return 0}function y(a,c,d){return d.reduce(function(c,d,e,f){return b("bs_curry")._2(a,c,d)},c)}function z(a,c,d){return d.reduce(function(c,d,e,f){return b("bs_curry")._3(a,c,d,e)},c)}function A(a,c){return c.map(function(c,d,e){return b("bs_curry")._1(a,c)})}function B(a,c){return c.map(function(c,d,e){return b("bs_curry")._2(a,c,d)})}function C(a,c){return c.map(function(c,d,e){d=c;if(d!==void 0)return b("bs_js_primitive").some(b("bs_curry")._1(a,b("bs_js_primitive").valFromOption(d)))})}function D(a,c){return c.filter(function(c,d,e){return b("bs_curry")._1(a,c)})}function E(a,c){return c.filter(function(c,d,e){return b("bs_curry")._2(a,c,d)})}function F(a){a=a.filter(function(a,b,c){b=a;return b!==void 0});return a.map(function(a,c,d){c=a;if(c!==void 0)return b("bs_js_primitive").valFromOption(c);else throw[b("FBExceptions.bs").Unreachable,"filterNone"]})}function G(a,b){return a.concat(b)}function H(a,c){return c.every(function(c,d,e){return b("bs_curry")._1(a,c)})}function I(a,c){return c.every(function(c,d,e){return b("bs_curry")._2(a,c,d)})}function J(a,c){return c.some(function(c,d,e){return b("bs_curry")._1(a,c)})}function K(a,c){return c.some(function(c,d,e){return b("bs_curry")._2(a,c,d)})}function L(a,b){return b.unshift(a)}function M(a,b){return b.push(a)}function N(a){return a.clear()}function O(){return b("immutable").List()}function P(a){return b("immutable").List(a)}function Q(a){return a.isEmpty()}function R(a){return a.size}function S(a){return a.reverse()}function T(a,b){return b.sort(a)}function U(a){return a.toArray()}f.addFirst=L;f.addIndex=k;f.addIndexExn=l;f.addLast=M;f.clear=N;f.concat=G;f.deleteIndex=i;f.deleteIndexExn=j;f.empty=O;f.every=H;f.everyi=I;f.filter=D;f.filteri=E;f.filterNone=F;f.forEach=w;f.forEachi=x;f.fromArray=P;f.fromList=a;f.getFirst=s;f.getFirstExn=t;f.getIndex=q;f.getIndexExn=r;f.getLast=u;f.getLastExn=v;f.isEmpty=Q;f.length=R;f.map=A;f.mapi=B;f.mapSome=C;f.reduce=y;f.reducei=z;f.removeFirst=o;f.removeFirstExn=p;f.removeLast=m;f.removeLastExn=n;f.reverse=S;f.setIndex=d;f.setIndexExn=e;f.some=J;f.somei=K;f.sort=T;f.toArray=U;f.toList=c;f.updateIndex=g;f.updateIndexExn=h}),null); __d("FBImmutableSet.bs",["bs_array","bs_curry","immutable","FBExceptions.bs","bs_js_primitive"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){return b("immutable").Set(b("bs_array").of_list(a))}function c(a){return b("bs_array").to_list(a.toArray())}function d(a,c){c.forEach(function(c,d,e){return b("bs_curry")._1(a,c)});return 0}function e(a,c,d){return d.reduce(function(c,d,e,f){return b("bs_curry")._2(a,c,d)},c)}function g(a,c){return c.map(function(c,d,e){return b("bs_curry")._1(a,c)})}function h(a,c){return c.map(function(c,d,e){d=c;if(d!==void 0)return b("bs_js_primitive").some(b("bs_curry")._1(a,b("bs_js_primitive").valFromOption(d)))})}function i(a,c){return c.filter(function(c,d,e){return b("bs_curry")._1(a,c)})}function j(a){a=a.filter(function(a,b,c){b=a;return b!==void 0});return a.map(function(a,c,d){c=a;if(c!==void 0)return b("bs_js_primitive").valFromOption(c);else throw[b("FBExceptions.bs").Unreachable,"filterNone"]})}function k(a,c){return c.every(function(c,d,e){return b("bs_curry")._1(a,c)})}function l(a,c){return c.some(function(c,d,e){return b("bs_curry")._1(a,c)})}function m(a,b){return b.add(a)}function n(a){return a.clear()}function o(a,b){return b["delete"](a)}function p(){return b("immutable").Set()}function q(a){return b("immutable").Set(a)}function r(a,b){return b.has(a)}function s(a){return a.isEmpty()}function t(a){return a.size}function u(a){return a.toArray()}f.add=m;f.clear=n;f.$$delete=o;f.empty=p;f.every=k;f.filter=i;f.filterNone=j;f.forEach=d;f.fromArray=q;f.fromList=a;f.has=r;f.isEmpty=s;f.size=t;f.map=g;f.mapSome=h;f.reduce=e;f.some=l;f.toArray=u;f.toList=c}),null); __d("FB.bs",["bs_curry","bs_js_primitive","FBImmutableSet.bs","FBImmutableList.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a,c){if(a!==void 0)return b("bs_js_primitive").valFromOption(a);else return c}function c(a,c){if(a!==void 0)return b("bs_js_primitive").some(b("bs_curry")._1(c,b("bs_js_primitive").valFromOption(a)))}function d(a,c){if(a!==void 0)return b("bs_curry")._1(c,b("bs_js_primitive").valFromOption(a))}e=[b("FBImmutableList.bs").addFirst,b("FBImmutableList.bs").addIndex,b("FBImmutableList.bs").addIndexExn,b("FBImmutableList.bs").addLast,b("FBImmutableList.bs").clear,b("FBImmutableList.bs").concat,b("FBImmutableList.bs").deleteIndex,b("FBImmutableList.bs").deleteIndexExn,b("FBImmutableList.bs").empty,b("FBImmutableList.bs").every,b("FBImmutableList.bs").everyi,b("FBImmutableList.bs").filter,b("FBImmutableList.bs").filteri,b("FBImmutableList.bs").filterNone,b("FBImmutableList.bs").forEach,b("FBImmutableList.bs").forEachi,b("FBImmutableList.bs").fromArray,b("FBImmutableList.bs").fromList,b("FBImmutableList.bs").getFirst,b("FBImmutableList.bs").getFirstExn,b("FBImmutableList.bs").getIndex,b("FBImmutableList.bs").getIndexExn,b("FBImmutableList.bs").getLast,b("FBImmutableList.bs").getLastExn,b("FBImmutableList.bs").isEmpty,b("FBImmutableList.bs").length,b("FBImmutableList.bs").map,b("FBImmutableList.bs").mapi,b("FBImmutableList.bs").mapSome,b("FBImmutableList.bs").reduce,b("FBImmutableList.bs").reducei,b("FBImmutableList.bs").removeFirst,b("FBImmutableList.bs").removeFirstExn,b("FBImmutableList.bs").removeLast,b("FBImmutableList.bs").removeLastExn,b("FBImmutableList.bs").reverse,b("FBImmutableList.bs").setIndex,b("FBImmutableList.bs").setIndexExn,b("FBImmutableList.bs").some,b("FBImmutableList.bs").somei,b("FBImmutableList.bs").sort,b("FBImmutableList.bs").toArray,b("FBImmutableList.bs").toList,b("FBImmutableList.bs").updateIndex,b("FBImmutableList.bs").updateIndexExn];var g=[b("FBImmutableSet.bs").add,b("FBImmutableSet.bs").clear,b("FBImmutableSet.bs").$$delete,b("FBImmutableSet.bs").empty,b("FBImmutableSet.bs").every,b("FBImmutableSet.bs").filter,b("FBImmutableSet.bs").filterNone,b("FBImmutableSet.bs").forEach,b("FBImmutableSet.bs").fromArray,b("FBImmutableSet.bs").fromList,b("FBImmutableSet.bs").has,b("FBImmutableSet.bs").isEmpty,b("FBImmutableSet.bs").size,b("FBImmutableSet.bs").map,b("FBImmutableSet.bs").mapSome,b("FBImmutableSet.bs").reduce,b("FBImmutableSet.bs").some,b("FBImmutableSet.bs").toArray,b("FBImmutableSet.bs").toList],h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0,Xa=0;f.ImmutableList=e;f.ImmutableSet=g;f.$pipe$unknown$colon=a;f.$great$great$pipe=c;f.$great$great$eq=d;f.$$Array=h;f.Char=i;f.$$String=j;f.Option=k;f.Arg=l;f.Arg_helper=m;f.ArrayLabels=n;f.Ast_helper=o;f.Ast_invariants=p;f.Ast_iterator=q;f.Ast_mapper=r;f.Asttypes=s;f.Attr_helper=t;f.BigArray=u;f.$$Buffer=v;f.Builtin_attributes=w;f.Bytes=x;f.BytesLabels=y;f.Callback=z;f.CamlinternalFormat=A;f.CamlinternalFormatBasics=B;f.CamlinternalLazy=C;f.CamlinternalOO=D;f.Ccomp=E;f.Clflags=F;f.Complex=G;f.Condition=H;f.Config=I;f.Consistbl=J;f.Depend=K;f.Digest=L;f.Docstrings=M;f.Dynlink=N;f.Ephemeron=O;f.Event=P;f.Filename=Q;f.Format=R;f.Gc=S;f.Genlex=T;f.Graphics=U;f.GraphicsX11=V;f.Hashtbl=W;f.Identifiable=X;f.Int32=Y;f.Int64=Z;f.Lazy=$;f.Lexer=aa;f.Lexing=ba;f.List=ca;f.ListLabels=da;f.Location=ea;f.Longident=fa;f.$$Map=ga;f.Marshal=ha;f.Misc=ia;f.MoreLabels=ja;f.Mutex=ka;f.Nativeint=la;f.Numbers=ma;f.Obj=na;f.Oo=oa;f.Parse=pa;f.Parser=qa;f.Parsetree=ra;f.Parsing=sa;f.Pervasives=ta;f.Pparse=ua;f.Pprintast=va;f.Printast=wa;f.Printexc=xa;f.Printf=ya;f.Profile=za;f.Queue=Aa;f.Random=Ba;f.Scanf=Ca;f.$$Set=Da;f.Simplif=Ea;f.Sort=Fa;f.Spacetime=Ga;f.Stack=Ha;f.StdLabels=Ia;f.Str=Ja;f.Stream=Ka;f.StringLabels=La;f.Strongly_connected_components=Ma;f.Syntaxerr=Na;f.Sys=Oa;f.Targetint=Pa;f.Tbl=Qa;f.Terminfo=Ra;f.Thread=Sa;f.ThreadUnix=Ta;f.Typemod=Ua;f.Uchar=Va;f.Unix=Wa;f.UnixLabels=Xa}),null); __d("AdsAdgroupSemantic.bs",["FB.bs","bs_curry","AdsAdgroup.bs","AdsCreative.bs","AdsCallToAction.bs","AdsObjectStorySpec.bs","AdsCallToActionValue.bs","AdsObjectStorySpecLinkData.bs","AdsObjectStorySpecVideoData.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a,c){return b("bs_curry")._1(a[0],c)}function c(a,c){return b("bs_curry")._1(a[1],c)}function d(a){return b("FB.bs").$great$great$eq(b("FB.bs").$great$great$eq(b("FB.bs").$great$great$eq(b("FB.bs").$great$great$eq(b("AdsAdgroup.bs").getCreative(a),b("AdsCreative.bs").getObjectStorySpec),b("AdsObjectStorySpec.bs").getLinkData),b("AdsObjectStorySpecLinkData.bs").getCallToAction),b("AdsCallToAction.bs").getType)}function e(a){return b("FB.bs").$great$great$eq(b("FB.bs").$great$great$eq(b("FB.bs").$great$great$eq(b("AdsAdgroup.bs").getCreative(a),b("AdsCreative.bs").getObjectStorySpec),b("AdsObjectStorySpec.bs").getLinkData),b("AdsObjectStorySpecLinkData.bs").getLink)}var g=[d,e];d=[d,e,g];function h(a){return b("FB.bs").$great$great$eq(b("FB.bs").$great$great$eq(b("FB.bs").$great$great$eq(b("FB.bs").$great$great$eq(b("AdsAdgroup.bs").getCreative(a),b("AdsCreative.bs").getObjectStorySpec),b("AdsObjectStorySpec.bs").getVideoData),b("AdsObjectStorySpecVideoData.bs").getCallToAction),b("AdsCallToAction.bs").getType)}function i(a){return b("FB.bs").$great$great$eq(b("FB.bs").$great$great$eq(b("FB.bs").$great$great$eq(b("FB.bs").$great$great$eq(b("FB.bs").$great$great$eq(b("AdsAdgroup.bs").getCreative(a),b("AdsCreative.bs").getObjectStorySpec),b("AdsObjectStorySpec.bs").getVideoData),b("AdsObjectStorySpecVideoData.bs").getCallToAction),b("AdsCallToAction.bs").getValue),b("AdsCallToActionValue.bs").getLink)}e=[h,i];g=[h,i,e];f.getCallToActionType=a;f.getLinkURL=c;f.Link=d;f.Video=g}),null); __d("AdsCallToActionTypes.bs",["AdsCallToActionTypes"],(function(a,b,c,d,e,f){"use strict";a=[b("AdsCallToActionTypes").TYPES.BUY_TICKETS.name];c=[b("AdsCallToActionTypes").TYPES.EVENT_RSVP.name];d=[a,c];f.TYPES=d}),null); __d("AdsUVPaths.bs",["AdsAPIAdgroupPaths","AdsAPICampaignPaths","AdsAPICampaignGroupPaths","AdsFrequencyControlEditorConstants"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=[[b("AdsAPICampaignGroupPaths").PROMOTED_OBJECT.PRODUCT_CATALOG_ID]];c=[b("AdsAPICampaignPaths").PROMOTED_OBJECT.APPLICATION_ID,b("AdsAPICampaignPaths").PROMOTED_OBJECT.CUSTOM_EVENT_TYPE,b("AdsAPICampaignPaths").PROMOTED_OBJECT.OBJECT_STORE_URL,b("AdsAPICampaignPaths").PROMOTED_OBJECT.OFFER_ID,b("AdsAPICampaignPaths").PROMOTED_OBJECT.OFFLINE_CONVERSION_DATA_SET_ID,b("AdsAPICampaignPaths").PROMOTED_OBJECT.PAGE_ID,b("AdsAPICampaignPaths").PROMOTED_OBJECT.PIXEL_ID,b("AdsAPICampaignPaths").PROMOTED_OBJECT.PRODUCT_SET_ID];d=[b("AdsAPICampaignPaths").TARGETING.AGE_MIN,b("AdsAPICampaignPaths").TARGETING.AGE_MAX,b("AdsAPICampaignPaths").TARGETING.CONNECTIONS,b("AdsAPICampaignPaths").TARGETING.FACEBOOK_POSITIONS,b("AdsAPICampaignPaths").TARGETING.FB_DEAL_ID,b("AdsAPICampaignPaths").TARGETING.INSTAGRAM_POSITIONS,b("AdsAPICampaignPaths").TARGETING.MESSENGER_POSITIONS,b("AdsAPICampaignPaths").TARGETING.WHATSAPP_POSITIONS];e=[c,d,b("AdsAPICampaignPaths").FREQUENCY_CONTROL_SPECS,b("AdsAPICampaignPaths").OPTIMIZATION_GOAL,b("AdsAPICampaignPaths").RF_PREDICTION_ID,b("AdsAPICampaignPaths").STATUS];c=[b("AdsFrequencyControlEditorConstants").ERROR_PATH_FOR_FREQUENCY,b("AdsFrequencyControlEditorConstants").ERROR_PATH_FOR_INTERVAL];d=[[b("AdsAPIAdgroupPaths").CREATIVE.OBJECT_STORY_ID,b("AdsAPIAdgroupPaths").CREATIVE.PRODUCT_SET_ID,[[b("AdsAPIAdgroupPaths").CREATIVE.OBJECT_STORY_SPEC.LINK_DATA.LINK],[[[b("AdsAPIAdgroupPaths").CREATIVE.OBJECT_STORY_SPEC.VIDEO_DATA.CALL_TO_ACTION.VALUE.LINK]]]]]];f.CampaignGroup=a;f.Campaign=e;f.FrequencyControl=c;f.Adgroup=d}),null); __d("AdsAdgroupEventURLValidator.bs",["FB.bs","bs_block","bs_curry","bs_caml_obj","FBOption.bs","AdsAdgroup.bs","AdsUVPaths.bs","AdsCreative.bs","bs_js_primitive","AdsValidators.bs","AdsCampaignGroup.bs","AdsEnum_Objective.bs","AdsAdgroupSemantic.bs","AdsObjectStorySpec.bs","AdsAdgroupValidator.bs","AdsCallToActionTypes.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){var c=a[0];a=b("AdsCampaignGroup.bs").getObjective(a[2]);return b("FBOption.bs").map(function(a){return[a,c]},a)}function c(a,c){__p&&__p();var d=c[1];c=c[0];c=c===b("AdsEnum_Objective.bs").event_responses||c===b("AdsEnum_Objective.bs").link_clicks||c===b("AdsEnum_Objective.bs").conversions;if(c){c=b("FBOption.bs").isSome(b("FB.bs").$great$great$eq(b("FB.bs").$great$great$eq(b("AdsAdgroup.bs").getCreative(d),b("AdsCreative.bs").getObjectStorySpec),b("AdsObjectStorySpec.bs").getLinkData));c=c?[b("AdsAdgroupSemantic.bs").Link[2],b("AdsUVPaths.bs").Adgroup[0][2][0][0]]:[b("AdsAdgroupSemantic.bs").Video[2],b("AdsUVPaths.bs").Adgroup[0][2][1][0][0][0]];var e=c[0],f=b("AdsAdgroupSemantic.bs").getCallToActionType(e,d);if(f!==void 0){f=b("bs_js_primitive").valFromOption(f);f=b("bs_caml_obj").caml_equal(f,b("AdsCallToActionTypes.bs").TYPES[0][0])||b("bs_caml_obj").caml_equal(f,b("AdsCallToActionTypes.bs").TYPES[1][0])}else f=!1;if(f){f=b("AdsAdgroupSemantic.bs").getLinkURL(e,d);if(b("FBOption.bs").isNone(f))return b("bs_curry")._3(a[0],void 0,c[1],b("bs_block").__(1,["event"]));else return 0}else return 0}else return 0}d=b("bs_curry")._1(b("AdsAdgroupValidator.bs").Make,["AdsAdgroupEventURLValidator",b("AdsValidators.bs").DefaultAdgroupValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("FBChar.bs",["bs_char","bs_string","bs_caml_obj","bs_caml_builtin_exceptions"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("bs_caml_obj").caml_compare;function a(a,b){return a===b}function h(a){if(a<0||a>255)return void 0;else return b("bs_char").chr(a)}function c(a){var c=h(a);if(c!==void 0)return c;else throw[b("bs_caml_builtin_exceptions").invalid_argument,"fromCharCodeExn() invalid character code: "+String(a)]}function d(a){return a}function e(a){return b("bs_string").make(1,a)}var i=d;f.compare=g;f.equal=a;f.fromCharCode=h;f.fromCharCodeExn=c;f.hash=i;f.toCharCode=d;f.toString=e}),null); __d("FBString.bs",["bs_array","FBChar.bs","bs_js_exn","bs_string","bs_caml_array","bs_caml_string","bs_caml_builtin_exceptions"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a,b){return a===b}function c(a){var c=0,d=a.length;for(var e=0,d=d-1|0;e<=d;++e){var f=b("FBChar.bs").toCharCode(b("bs_caml_string").get(a,e));c=((c<<5)-c|0)+f|0;c=c&c}return c}function d(a,b){return b.includes(a)}function e(a,b){return b.indexOf(a)}function g(a,b){b=b.indexOf(a);if(b===-1)return void 0;else return b}function h(a,b){b=b.lastIndexOf(a);if(b===-1)return void 0;else return b}function i(a){return a.length===0}function j(a,c){if(c<0||c>=a.length)return void 0;else return b("bs_caml_string").get(a,c)}function k(a,b){return j(b,a)}function l(a,c){c=j(c,a);if(c!==void 0)return c;else throw[b("bs_caml_builtin_exceptions").invalid_argument,"charAtExn() invalid index: "+String(a)]}function m(a,c){if(a<0||a>=c.length)return void 0;else return b("bs_caml_string").get(c,a)}function n(a,c){c=m(a,c);if(c!==void 0)return c;else throw[b("bs_caml_builtin_exceptions").invalid_argument,"charCodeAtExn() invalid index: "+String(a)]}function o(a,b){return b.endsWith(a)}function p(a,b){return b.startsWith(a)}function q(a,b){var c=a<=0;if(c)return"";else return b.repeat(a)}function r(a,b,c){__p&&__p();var d=a.length;if(d===0)return c;else{a=g(a,c);if(a!==void 0){a=a;var e=c.slice(0,a);a=c.slice(a+d|0);return e+(b+a)}else return c}}function s(a,c){return b("bs_array").of_list(c).join(a)}function t(a,b,c){var d=a.length;if(d===0)return c;else{d=c.split(a);return d.join(b)}}function u(a){return b("bs_array").map(b("FBChar.bs").toString,b("bs_array").map(b("FBChar.bs").fromCharCodeExn,a)).join("")}function v(a){try{return u(a)}catch(c){a=b("bs_js_exn").internalToOCamlException(c);if(a[0]===b("bs_caml_builtin_exceptions").invalid_argument)return void 0;else throw a}}function w(a){var c=a.length;return b("bs_string").init(c,function(c){return b("bs_caml_array").caml_array_get(a,c)})}function x(a){var c=a.length;return b("bs_array").init(c,function(c){return b("bs_caml_string").get(a,c)})}function y(a,b){return a.localeCompare(b)}var z=0,A=0;function B(a,b){return b.join(a)}function C(a,b){return b.lastIndexOf(a)}function D(a){return a.length}var E=0;function F(a,b,c){return c.slice(a,b)}function G(a,b){return b.slice(a)}function H(a,b){return b.split(a)}var I=0;function J(a){return a}function K(a){return a.trim()}function L(a){return a.trimLeft()}function M(a){return a.trimRight()}f.charAt=k;f.charAtExn=l;f.charCodeAt=m;f.charCodeAtExn=n;f.compare=y;f.contains=d;f.count=z;f.endsWith=o;f.equal=a;f.fromCharCodes=v;f.fromCharCodesExn=u;f.fromChars=w;f.get=j;f.hash=c;f.includes=A;f.indexOf=g;f.indexOfInt=e;f.isEmpty=i;f.join=B;f.joinList=s;f.lastIndexOf=h;f.lastIndexOfInt=C;f.length=D;f.repeat=q;f.replaceFirst=r;f.replaceAll=t;f.size=E;f.slice=F;f.sliceToEnd=G;f.split=H;f.startsWith=p;f.substring=I;f.toChars=x;f.toString=J;f.trim=K;f.trimLeft=L;f.trimRight=M}),null); __d("AdsAdgroupNameValidator.bs",["bs_curry","FBString.bs","AdsAdgroup.bs","AdsValidators.bs","AdsAdgroupValidator.bs","AdsValidationConsts"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){return b("AdsAdgroup.bs").getName(a[0])}function c(a,c){if(b("FBString.bs").length(c)>b("AdsValidationConsts").nameMaxLength)return b("bs_curry")._3(a[0],void 0,void 0,4);else return 0}d=b("bs_curry")._1(b("AdsAdgroupValidator.bs").Make,["AdsAdgroupNameValidator",b("AdsValidators.bs").DefaultAdgroupValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsAPIPromotablePostImpl.bs",["bs_js_primitive","AdsDataModelUtils.bs","bs_js_null_undefined"],(function(a,b,c,d,e,f){"use strict";d={allowed_advertising_objectives:null};function a(a){return b("bs_js_primitive").nullable_to_opt(a.allowed_advertising_objectives)}function c(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{allowed_advertising_objectives:b("bs_js_null_undefined").fromOption(a)})}f.empty=d;f.getAllowedAdvertisingObjectives=a;f.setAllowedAdvertisingObjectives=c}),null); __d("AdsAPIPromotablePost.bs",["FBOption.bs","AdsAPIPromotablePostImpl.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();e=b("AdsAPIPromotablePostImpl.bs").getAllowedAdvertisingObjectives;function a(a,c){return b("AdsAPIPromotablePostImpl.bs").setAllowedAdvertisingObjectives(a,c)}function c(a){return b("AdsAPIPromotablePostImpl.bs").setAllowedAdvertisingObjectives(void 0,a)}function d(a,c){a=b("FBOption.bs").map(a,b("AdsAPIPromotablePostImpl.bs").getAllowedAdvertisingObjectives(c));return b("AdsAPIPromotablePostImpl.bs").setAllowedAdvertisingObjectives(a,c)}f.getAllowedAdvertisingObjectives=e;f.setAllowedAdvertisingObjectives=a;f.deleteAllowedAdvertisingObjectives=c;f.updateAllowedAdvertisingObjectives=d}),null); __d("AdsAdgroupPostValidator.bs",["bs_curry","AdsArray.bs","AdsUVPaths.bs","bs_js_primitive","AdsValidators.bs","AdsCampaignGroup.bs","AdsAdgroupValidator.bs","AdsAPIPromotablePost.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){var c=b("AdsCampaignGroup.bs").getObjective(a[2]);if(c!==void 0)return[a[5],b("bs_js_primitive").valFromOption(c)]}function g(a){a=a[0];if(a!==void 0){a=b("AdsAPIPromotablePost.bs").getAllowedAdvertisingObjectives(b("bs_js_primitive").valFromOption(a));if(a!==void 0)return b("AdsArray.bs").length(a)>0;else return!1}else return!1}function c(a,c){__p&&__p();if(g(c)){var d=c[0];if(d!==void 0){d=b("AdsAPIPromotablePost.bs").getAllowedAdvertisingObjectives(b("bs_js_primitive").valFromOption(d));if(d!==void 0&&!b("AdsArray.bs").contains(void 0,c[1],d))return b("bs_curry")._3(a[0],void 0,b("AdsUVPaths.bs").Adgroup[0][0],62);else return 0}else return 0}else return 0}d=b("bs_curry")._1(b("AdsAdgroupValidator.bs").Make,["AdsAdgroupPostValidator",b("AdsValidators.bs").DefaultAdgroupValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsAdgroupProductSetValidator.bs",["FB.bs","bs_curry","AdsArray.bs","FBOption.bs","AdsAdgroup.bs","AdsUVPaths.bs","AdsCreative.bs","AdsValidators.bs","AdsCampaignGroup.bs","AdsEnum_Objective.bs","AdsObjectStorySpec.bs","AdsAdgroupValidator.bs","AdsObjectStorySpecLinkData.bs","AdsObjectStorySpecVideoData.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){var c=b("AdsCampaignGroup.bs").getObjective(a[2]);a=b("AdsAdgroup.bs").getCreative(a[0]);return b("FBOption.bs").map2(function(a,b){return[a,b]},c,a)}function g(a){var c=b("FB.bs").$great$great$eq(b("FB.bs").$great$great$eq(b("AdsCreative.bs").getObjectStorySpec(a),b("AdsObjectStorySpec.bs").getLinkData),b("AdsObjectStorySpecLinkData.bs").getRetailerItemIDs);a=b("FB.bs").$great$great$eq(b("FB.bs").$great$great$eq(b("AdsCreative.bs").getObjectStorySpec(a),b("AdsObjectStorySpec.bs").getVideoData),b("AdsObjectStorySpecVideoData.bs").getRetailerItemIDs);if(c!==void 0)return b("AdsArray.bs").length(c)>0;else if(a!==void 0)return b("AdsArray.bs").length(a)>0;else return!1}function c(a,c){var d=c[1];c=c[0]===b("AdsEnum_Objective.bs").product_catalog_sales;if(c||g(d)){c=b("FBOption.bs").isNone(b("AdsCreative.bs").getProductSetID(d));if(c)return b("bs_curry")._3(a[0],void 0,b("AdsUVPaths.bs").Adgroup[0][1],61);else return 0}else return 0}d=b("bs_curry")._1(b("AdsAdgroupValidator.bs").Make,["AdsAdgroupProductSetValidator",b("AdsValidators.bs").DefaultAdgroupValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsPlacementEligibilityInformationImpl.bs",["bs_js_primitive","AdsDataModelUtils.bs","bs_js_null_undefined"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g={capabilities:null,spec:null};function a(a){return b("bs_js_primitive").nullable_to_opt(a.capabilities)}function c(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{capabilities:b("bs_js_null_undefined").fromOption(a)})}function d(a){return b("bs_js_primitive").nullable_to_opt(a.spec)}function e(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{spec:b("bs_js_null_undefined").fromOption(a)})}f.empty=g;f.getCapabilities=a;f.setCapabilities=c;f.getPlacementSpec=d;f.setPlacementSpec=e}),null); __d("AdsPlacementEligibilityInformation.bs",["FBOption.bs","bs_js_primitive","AdsPlacementEligibilityInformationImpl.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("AdsPlacementEligibilityInformationImpl.bs").getCapabilities;function a(a,c){return b("AdsPlacementEligibilityInformationImpl.bs").setCapabilities(a,c)}function c(a){return b("AdsPlacementEligibilityInformationImpl.bs").setCapabilities(void 0,a)}function d(a,c){a=b("FBOption.bs").map(a,b("AdsPlacementEligibilityInformationImpl.bs").getCapabilities(c));return b("AdsPlacementEligibilityInformationImpl.bs").setCapabilities(a,c)}var h=b("AdsPlacementEligibilityInformationImpl.bs").getPlacementSpec;function e(a,c){return b("AdsPlacementEligibilityInformationImpl.bs").setPlacementSpec(b("bs_js_primitive").some(a),c)}function i(a){return b("AdsPlacementEligibilityInformationImpl.bs").setPlacementSpec(void 0,a)}function j(a,c){a=b("FBOption.bs").map(a,b("AdsPlacementEligibilityInformationImpl.bs").getPlacementSpec(c));return b("AdsPlacementEligibilityInformationImpl.bs").setPlacementSpec(a,c)}f.getCapabilities=g;f.setCapabilities=a;f.deleteCapabilities=c;f.updateCapabilities=d;f.getPlacementSpec=h;f.setPlacementSpec=e;f.deletePlacementSpec=i;f.updatePlacementSpec=j}),null); __d("AdsSponsoredMessageValidationUtils.bs",["bs_js_primitive","AdsEnum_Objective.bs","AdsUtils_Placement_Messenger.bs","AdsPlacementEligibilityInformation.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){a=b("AdsPlacementEligibilityInformation.bs").getPlacementSpec(a);if(a!==void 0)return b("AdsUtils_Placement_Messenger.bs").isMessengerThreadSelected(b("bs_js_primitive").valFromOption(a));else return!1}function c(a){return a===b("AdsEnum_Objective.bs").messages}f.shouldValidateObjective=a;f.validateObjective=c}),null); __d("AdsAdgroupSponsoredMessageCheckObjectiveValidator.bs",["bs_curry","FBOption.bs","bs_js_primitive","AdsValidators.bs","AdsCampaignGroup.bs","AdsAdgroupValidator.bs","AdsSponsoredMessageValidationUtils.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){var c=b("AdsCampaignGroup.bs").getObjective(a[2]);if(c!==void 0)return[a[3],b("FBOption.bs").$$default(!1,a[4]),b("bs_js_primitive").valFromOption(c)]}function g(a){if(a[1])return b("AdsSponsoredMessageValidationUtils.bs").shouldValidateObjective(a[0]);else return!1}function c(a,c){var d=b("AdsSponsoredMessageValidationUtils.bs").validateObjective(c[2]);if(g(c)&&!d)return b("bs_curry")._3(a[0],void 0,void 0,31);else return 0}d=b("bs_curry")._1(b("AdsAdgroupValidator.bs").Make,["AdsAdgroupSponsoredMessageCheckObjectiveValidator",b("AdsValidators.bs").DefaultAdgroupValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsUVRollout",["AdsUnifiedValidationRolloutSitevar","gkx"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){__p&&__p();a=b("AdsUnifiedValidationRolloutSitevar").validators[a];if(a!=null)switch(a.client){case"NONE":return b("gkx")("879363");case"EMPLOYEE_50":return b("gkx")("879364");case"PUBLIC_10":return b("gkx")("879365");case"PUBLIC_25":return b("gkx")("879366");case"PUBLIC_50":return b("gkx")("879367");case"PUBLIC_75":return b("gkx")("879368");case"PUBLIC_100":return b("gkx")("879369");default:return!1}else return!1}c={shouldUseReason:a};e.exports=c}),null); __d("AdsUVRollout.bs",["bs_list","bs_curry","AdsUVRollout"],(function(a,b,c,d,e,f){"use strict";function a(a,c,d){return b("bs_list").filter(function(c){return b("AdsUVRollout").shouldUseReason(b("bs_curry")._1(a,c))})(c)}f.filter=a}),null); __d("AdsAdgroupValidatorList.bs",["AdsUVRollout.bs","AdsAdgroupDURValidator.bs","AdsAdgroupNameValidator.bs","AdsAdgroupPostValidator.bs","AdsAdgroupEventURLValidator.bs","AdsAdgroupProductSetValidator.bs","AdsAdgroupSponsoredMessageCheckObjectiveValidator.bs"],(function(a,b,c,d,e,f){"use strict";c=[b("AdsAdgroupDURValidator.bs").meta,b("AdsAdgroupDURValidator.bs").run,b("AdsAdgroupDURValidator.bs").isEligible];d=[[b("AdsAdgroupEventURLValidator.bs").meta,b("AdsAdgroupEventURLValidator.bs").run,b("AdsAdgroupEventURLValidator.bs").isEligible],[[b("AdsAdgroupNameValidator.bs").meta,b("AdsAdgroupNameValidator.bs").run,b("AdsAdgroupNameValidator.bs").isEligible],[[b("AdsAdgroupProductSetValidator.bs").meta,b("AdsAdgroupProductSetValidator.bs").run,b("AdsAdgroupProductSetValidator.bs").isEligible],[[b("AdsAdgroupPostValidator.bs").meta,b("AdsAdgroupPostValidator.bs").run,b("AdsAdgroupPostValidator.bs").isEligible],[[b("AdsAdgroupSponsoredMessageCheckObjectiveValidator.bs").meta,b("AdsAdgroupSponsoredMessageCheckObjectiveValidator.bs").run,b("AdsAdgroupSponsoredMessageCheckObjectiveValidator.bs").isEligible],0]]]]];var g=[c,d];function a(a){return b("AdsUVRollout.bs").filter(function(a){return a[0]},g,a)}f.getValidators=a}),null); __d("AdsCampaignCreator.bs",["AdsCampaignImpl.bs"],(function(a,b,c,d,e,f){"use strict";function a(a){return a}function c(){return b("AdsCampaignImpl.bs").empty}f.create=a;f.createEmpty=c}),null); __d("AdsCampaignGroupCreator.bs",["AdsCampaignGroupImpl.bs"],(function(a,b,c,d,e,f){"use strict";function a(a){return a}function c(){return b("AdsCampaignGroupImpl.bs").empty}f.create=a;f.createEmpty=c}),null); __d("AdsCampaignGroupValidator.bs",["Validators.bs"],(function(a,b,c,d,e,f){"use strict";a=b("Validators.bs").SimpleCacheValidator([]);c=a[0];f.Make=c}),null); __d("AdsEnum_AdsRunStatus.bs",["AdsRunStatus"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=b("AdsRunStatus").PENDING;c=b("AdsRunStatus").ACTIVE;d=b("AdsRunStatus").PAUSED;e=b("AdsRunStatus").DELETED;var g=b("AdsRunStatus").PENDING_REVIEW,h=b("AdsRunStatus").DISAPPROVED,i=b("AdsRunStatus").PREAPPROVED,j=b("AdsRunStatus").PENDING_BILLING_INFO,k=b("AdsRunStatus").CAMPAIGN_PAUSED,l=b("AdsRunStatus").ADGROUP_PAUSED,m=b("AdsRunStatus").CAMPAIGN_GROUP_PAUSED,n=b("AdsRunStatus").ARCHIVED,o=b("AdsRunStatus").ADSET_PAUSED;b=b("AdsRunStatus").ARCHIVED_IN_DRAFT;f.pending=a;f.active=c;f.paused=d;f.deleted=e;f.pending_review=g;f.disapproved=h;f.preapproved=i;f.pending_billing_info=j;f.campaign_paused=k;f.adgroup_paused=l;f.campaign_group_paused=m;f.archived=n;f.adset_paused=o;f.archived_in_draft=b}),null); __d("AdsCampaignGroupDeletedValidator.bs",["bs_curry","FBOption.bs","bs_js_primitive","AdsValidators.bs","FBImmutableSet.bs","AdsCampaignGroup.bs","AdsEnum_AdsRunStatus.bs","AdsCampaignGroupValidator.bs","AdsAPIAdCampaignGroupFields"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){var c=b("AdsCampaignGroup.bs").getStatus(a[1]),d=b("AdsCampaignGroup.bs").getStatus(a[4]),e=b("FBOption.bs").$$default(!1,a[3]);if(c!==void 0&&d!==void 0)return[b("bs_js_primitive").valFromOption(c),a[2],e,b("bs_js_primitive").valFromOption(d)]}function g(a,c,d){if(c)return!1;else if(a===b("AdsEnum_AdsRunStatus.bs").archived)return!0;else return d===b("AdsEnum_AdsRunStatus.bs").archived}var h=b("FBImmutableSet.bs").fromList([b("AdsAPIAdCampaignGroupFields").NAME,[b("AdsAPIAdCampaignGroupFields").STATUS,0]]);function c(a,c){var d=c[0];if(g(d,c[2],c[3])){c=b("FBImmutableSet.bs").some(function(a){return!b("FBImmutableSet.bs").has(a,h)},c[1]);if(c||d!==b("AdsEnum_AdsRunStatus.bs").archived&&d!==b("AdsEnum_AdsRunStatus.bs").deleted)return b("bs_curry")._3(a[0],void 0,void 0,2);else return 0}else return 0}d=b("bs_curry")._1(b("AdsCampaignGroupValidator.bs").Make,["AdsCampaignGroupDeletedValidator",b("AdsValidators.bs").DefaultCampaignGroupValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsCampaignGroupNameValidator.bs",["bs_curry","FBString.bs","AdsValidators.bs","AdsCampaignGroup.bs","AdsValidationConsts","AdsCampaignGroupValidator.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){return b("AdsCampaignGroup.bs").getName(a[1])}function c(a,c){if(b("FBString.bs").length(c)>b("AdsValidationConsts").nameMaxLength)return b("bs_curry")._3(a[0],void 0,void 0,4);else return 0}d=b("bs_curry")._1(b("AdsCampaignGroupValidator.bs").Make,["AdsCampaignGroupNameValidator",b("AdsValidators.bs").DefaultCampaignGroupValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsPromotedObjectImpl.bs",["bs_js_primitive","AdsDataModelUtils.bs","bs_js_null_undefined"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g={application_id:null,custom_conversion_id:null,offline_conversion_data_set_id:null,custom_event_type:null,object_store_url:null,offer_id:null,page_id:null,pixel_id:null,place_page_set_id:null,product_catalog_id:null,product_set_id:null};function a(a){return b("bs_js_primitive").nullable_to_opt(a.application_id)}function c(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{application_id:b("bs_js_null_undefined").fromOption(a)})}function d(a){return b("bs_js_primitive").nullable_to_opt(a.custom_conversion_id)}function e(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{custom_conversion_id:b("bs_js_null_undefined").fromOption(a)})}function h(a){return b("bs_js_primitive").nullable_to_opt(a.offline_conversion_data_set_id)}function i(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{offline_conversion_data_set_id:b("bs_js_null_undefined").fromOption(a)})}function j(a){return b("bs_js_primitive").nullable_to_opt(a.custom_event_type)}function k(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{custom_event_type:b("bs_js_null_undefined").fromOption(a)})}function l(a){return b("bs_js_primitive").nullable_to_opt(a.object_store_url)}function m(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{object_store_url:b("bs_js_null_undefined").fromOption(a)})}function n(a){return b("bs_js_primitive").nullable_to_opt(a.offer_id)}function o(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{offer_id:b("bs_js_null_undefined").fromOption(a)})}function p(a){return b("bs_js_primitive").nullable_to_opt(a.page_id)}function q(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{page_id:b("bs_js_null_undefined").fromOption(a)})}function r(a){return b("bs_js_primitive").nullable_to_opt(a.pixel_id)}function s(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{pixel_id:b("bs_js_null_undefined").fromOption(a)})}function t(a){return b("bs_js_primitive").nullable_to_opt(a.place_page_set_id)}function u(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{place_page_set_id:b("bs_js_null_undefined").fromOption(a)})}function v(a){return b("bs_js_primitive").nullable_to_opt(a.product_catalog_id)}function w(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{product_catalog_id:b("bs_js_null_undefined").fromOption(a)})}function x(a){return b("bs_js_primitive").nullable_to_opt(a.product_set_id)}function y(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{product_set_id:b("bs_js_null_undefined").fromOption(a)})}f.empty=g;f.getApplicationID=a;f.setApplicationID=c;f.getCustomConversionID=d;f.setCustomConversionID=e;f.getOfflineConversionDataSetID=h;f.setOfflineConversionDataSetID=i;f.getCustomEventType=j;f.setCustomEventType=k;f.getObjectStoreURL=l;f.setObjectStoreURL=m;f.getOfferID=n;f.setOfferID=o;f.getPageID=p;f.setPageID=q;f.getPixelID=r;f.setPixelID=s;f.getPlacePageSetID=t;f.setPlacePageSetID=u;f.getProductCatalogID=v;f.setProductCatalogID=w;f.getProductSetID=x;f.setProductSetID=y}),null); __d("AdsPromotedObject.bs",["FBOption.bs","bs_js_primitive","AdsPromotedObjectImpl.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("AdsPromotedObjectImpl.bs").getApplicationID;function a(a,c){return b("AdsPromotedObjectImpl.bs").setApplicationID(b("bs_js_primitive").some(a),c)}function c(a){return b("AdsPromotedObjectImpl.bs").setApplicationID(void 0,a)}function d(a,c){a=b("FBOption.bs").map(a,b("AdsPromotedObjectImpl.bs").getApplicationID(c));return b("AdsPromotedObjectImpl.bs").setApplicationID(a,c)}var h=b("AdsPromotedObjectImpl.bs").getCustomConversionID;function e(a,c){return b("AdsPromotedObjectImpl.bs").setCustomConversionID(b("bs_js_primitive").some(a),c)}function i(a){return b("AdsPromotedObjectImpl.bs").setCustomConversionID(void 0,a)}function j(a,c){a=b("FBOption.bs").map(a,b("AdsPromotedObjectImpl.bs").getCustomConversionID(c));return b("AdsPromotedObjectImpl.bs").setCustomConversionID(a,c)}var k=b("AdsPromotedObjectImpl.bs").getOfflineConversionDataSetID;function l(a,c){return b("AdsPromotedObjectImpl.bs").setOfflineConversionDataSetID(b("bs_js_primitive").some(a),c)}function m(a){return b("AdsPromotedObjectImpl.bs").setOfflineConversionDataSetID(void 0,a)}function n(a,c){a=b("FBOption.bs").map(a,b("AdsPromotedObjectImpl.bs").getOfflineConversionDataSetID(c));return b("AdsPromotedObjectImpl.bs").setOfflineConversionDataSetID(a,c)}var o=b("AdsPromotedObjectImpl.bs").getCustomEventType;function p(a,c){return b("AdsPromotedObjectImpl.bs").setCustomEventType(b("bs_js_primitive").some(a),c)}function q(a){return b("AdsPromotedObjectImpl.bs").setCustomEventType(void 0,a)}function r(a,c){a=b("FBOption.bs").map(a,b("AdsPromotedObjectImpl.bs").getCustomEventType(c));return b("AdsPromotedObjectImpl.bs").setCustomEventType(a,c)}var s=b("AdsPromotedObjectImpl.bs").getObjectStoreURL;function t(a,c){return b("AdsPromotedObjectImpl.bs").setObjectStoreURL(a,c)}function u(a){return b("AdsPromotedObjectImpl.bs").setObjectStoreURL(void 0,a)}function v(a,c){a=b("FBOption.bs").map(a,b("AdsPromotedObjectImpl.bs").getObjectStoreURL(c));return b("AdsPromotedObjectImpl.bs").setObjectStoreURL(a,c)}var w=b("AdsPromotedObjectImpl.bs").getOfferID;function x(a,c){return b("AdsPromotedObjectImpl.bs").setOfferID(b("bs_js_primitive").some(a),c)}function y(a){return b("AdsPromotedObjectImpl.bs").setOfferID(void 0,a)}function z(a,c){a=b("FBOption.bs").map(a,b("AdsPromotedObjectImpl.bs").getOfferID(c));return b("AdsPromotedObjectImpl.bs").setOfferID(a,c)}var A=b("AdsPromotedObjectImpl.bs").getPageID;function B(a,c){return b("AdsPromotedObjectImpl.bs").setPageID(b("bs_js_primitive").some(a),c)}function C(a){return b("AdsPromotedObjectImpl.bs").setPageID(void 0,a)}function D(a,c){a=b("FBOption.bs").map(a,b("AdsPromotedObjectImpl.bs").getPageID(c));return b("AdsPromotedObjectImpl.bs").setPageID(a,c)}var E=b("AdsPromotedObjectImpl.bs").getPixelID;function F(a,c){return b("AdsPromotedObjectImpl.bs").setPixelID(b("bs_js_primitive").some(a),c)}function G(a){return b("AdsPromotedObjectImpl.bs").setPixelID(void 0,a)}function H(a,c){a=b("FBOption.bs").map(a,b("AdsPromotedObjectImpl.bs").getPixelID(c));return b("AdsPromotedObjectImpl.bs").setPixelID(a,c)}var I=b("AdsPromotedObjectImpl.bs").getPlacePageSetID;function J(a,c){return b("AdsPromotedObjectImpl.bs").setPlacePageSetID(b("bs_js_primitive").some(a),c)}function K(a){return b("AdsPromotedObjectImpl.bs").setPlacePageSetID(void 0,a)}function L(a,c){a=b("FBOption.bs").map(a,b("AdsPromotedObjectImpl.bs").getPlacePageSetID(c));return b("AdsPromotedObjectImpl.bs").setPlacePageSetID(a,c)}var M=b("AdsPromotedObjectImpl.bs").getProductCatalogID;function N(a,c){return b("AdsPromotedObjectImpl.bs").setProductCatalogID(b("bs_js_primitive").some(a),c)}function O(a){return b("AdsPromotedObjectImpl.bs").setProductCatalogID(void 0,a)}function P(a,c){a=b("FBOption.bs").map(a,b("AdsPromotedObjectImpl.bs").getProductCatalogID(c));return b("AdsPromotedObjectImpl.bs").setProductCatalogID(a,c)}var Q=b("AdsPromotedObjectImpl.bs").getProductSetID;function R(a,c){return b("AdsPromotedObjectImpl.bs").setProductSetID(b("bs_js_primitive").some(a),c)}function S(a){return b("AdsPromotedObjectImpl.bs").setProductSetID(void 0,a)}function T(a,c){a=b("FBOption.bs").map(a,b("AdsPromotedObjectImpl.bs").getProductSetID(c));return b("AdsPromotedObjectImpl.bs").setProductSetID(a,c)}f.getApplicationID=g;f.setApplicationID=a;f.deleteApplicationID=c;f.updateApplicationID=d;f.getCustomConversionID=h;f.setCustomConversionID=e;f.deleteCustomConversionID=i;f.updateCustomConversionID=j;f.getOfflineConversionDataSetID=k;f.setOfflineConversionDataSetID=l;f.deleteOfflineConversionDataSetID=m;f.updateOfflineConversionDataSetID=n;f.getCustomEventType=o;f.setCustomEventType=p;f.deleteCustomEventType=q;f.updateCustomEventType=r;f.getObjectStoreURL=s;f.setObjectStoreURL=t;f.deleteObjectStoreURL=u;f.updateObjectStoreURL=v;f.getOfferID=w;f.setOfferID=x;f.deleteOfferID=y;f.updateOfferID=z;f.getPageID=A;f.setPageID=B;f.deletePageID=C;f.updatePageID=D;f.getPixelID=E;f.setPixelID=F;f.deletePixelID=G;f.updatePixelID=H;f.getPlacePageSetID=I;f.setPlacePageSetID=J;f.deletePlacePageSetID=K;f.updatePlacePageSetID=L;f.getProductCatalogID=M;f.setProductCatalogID=N;f.deleteProductCatalogID=O;f.updateProductCatalogID=P;f.getProductSetID=Q;f.setProductSetID=R;f.deleteProductSetID=S;f.updateProductSetID=T}),null); __d("AdsCampaignGroupProductCatalogValidator.bs",["bs_curry","AdsUVPaths.bs","bs_js_primitive","AdsValidators.bs","AdsCampaignGroup.bs","AdsEnum_Objective.bs","AdsPromotedObject.bs","AdsCampaignGroupValidator.bs","AdsAPIPromotedObjectFields"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){a=a[1];var c=b("AdsCampaignGroup.bs").getObjective(a);a=b("AdsCampaignGroup.bs").getPromotedObject(a);if(c!==void 0){c=b("bs_js_primitive").valFromOption(c);if(a!==void 0)return[c,b("AdsPromotedObject.bs").getProductCatalogID(b("bs_js_primitive").valFromOption(a))];else return[c,void 0]}}function c(a,c){if(c[0]===b("AdsEnum_Objective.bs").product_catalog_sales){c=c[1]===void 0;if(c)return b("bs_curry")._3(a[0],b("AdsAPIPromotedObjectFields").PRODUCT_CATALOG_ID,b("AdsUVPaths.bs").CampaignGroup[0][0],12);else return 0}else return 0}d=b("bs_curry")._1(b("AdsCampaignGroupValidator.bs").Make,["AdsCampaignGroupProductCatalogValidator",b("AdsValidators.bs").DefaultCampaignGroupValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsAdAccount.bs",["FBOption.bs","bs_js_primitive","AdsAdAccountImpl.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("AdsAdAccountImpl.bs").getAdAccountID;function a(a,c){return b("AdsAdAccountImpl.bs").setAdAccountID(b("bs_js_primitive").some(a),c)}function c(a){return b("AdsAdAccountImpl.bs").setAdAccountID(void 0,a)}function d(a,c){a=b("FBOption.bs").map(a,b("AdsAdAccountImpl.bs").getAdAccountID(c));return b("AdsAdAccountImpl.bs").setAdAccountID(a,c)}var h=b("AdsAdAccountImpl.bs").getAmountSpent;function e(a,c){return b("AdsAdAccountImpl.bs").setAmountSpent(b("bs_js_primitive").some(a),c)}function i(a){return b("AdsAdAccountImpl.bs").setAmountSpent(void 0,a)}function j(a,c){a=b("FBOption.bs").map(a,b("AdsAdAccountImpl.bs").getAmountSpent(c));return b("AdsAdAccountImpl.bs").setAmountSpent(a,c)}var k=b("AdsAdAccountImpl.bs").getName;function l(a,c){return b("AdsAdAccountImpl.bs").setName(a,c)}function m(a){return b("AdsAdAccountImpl.bs").setName(void 0,a)}function n(a,c){a=b("FBOption.bs").map(a,b("AdsAdAccountImpl.bs").getName(c));return b("AdsAdAccountImpl.bs").setName(a,c)}var o=b("AdsAdAccountImpl.bs").getCapabilities;function p(a,c){return b("AdsAdAccountImpl.bs").setCapabilities(a,c)}function q(a){return b("AdsAdAccountImpl.bs").setCapabilities(void 0,a)}function r(a,c){a=b("FBOption.bs").map(a,b("AdsAdAccountImpl.bs").getCapabilities(c));return b("AdsAdAccountImpl.bs").setCapabilities(a,c)}var s=b("AdsAdAccountImpl.bs").getCurrency;function t(a,c){return b("AdsAdAccountImpl.bs").setCurrency(a,c)}function u(a){return b("AdsAdAccountImpl.bs").setCurrency(void 0,a)}function v(a,c){a=b("FBOption.bs").map(a,b("AdsAdAccountImpl.bs").getCurrency(c));return b("AdsAdAccountImpl.bs").setCurrency(a,c)}var w=b("AdsAdAccountImpl.bs").getSpendCap;function x(a,c){return b("AdsAdAccountImpl.bs").setSpendCap(b("bs_js_primitive").some(a),c)}function y(a){return b("AdsAdAccountImpl.bs").setSpendCap(void 0,a)}function z(a,c){a=b("FBOption.bs").map(a,b("AdsAdAccountImpl.bs").getSpendCap(c));return b("AdsAdAccountImpl.bs").setSpendCap(a,c)}var A=b("AdsAdAccountImpl.bs").getTimeZoneID;function B(a,c){return b("AdsAdAccountImpl.bs").setTimeZoneID(a,c)}function C(a){return b("AdsAdAccountImpl.bs").setTimeZoneID(void 0,a)}function D(a,c){a=b("FBOption.bs").map(a,b("AdsAdAccountImpl.bs").getTimeZoneID(c));return b("AdsAdAccountImpl.bs").setTimeZoneID(a,c)}f.getAdAccountID=g;f.setAdAccountID=a;f.deleteAdAccountID=c;f.updateAdAccountID=d;f.getAmountSpent=h;f.setAmountSpent=e;f.deleteAmountSpent=i;f.updateAmountSpent=j;f.getName=k;f.setName=l;f.deleteName=m;f.updateName=n;f.getCapabilities=o;f.setCapabilities=p;f.deleteCapabilities=q;f.updateCapabilities=r;f.getCurrency=s;f.setCurrency=t;f.deleteCurrency=u;f.updateCurrency=v;f.getSpendCap=w;f.setSpendCap=x;f.deleteSpendCap=y;f.updateSpendCap=z;f.getTimeZoneID=A;f.setTimeZoneID=B;f.deleteTimeZoneID=C;f.updateTimeZoneID=D}),null); __d("AdsTypes.bs",[],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){return a}b=a;c=a;d=a;e=a;var g=a,h=a,i=a,j=a,k=a,l=a,m=a,n=a,o=a,p=a,q=a,r=a,s=a,t=a,u=a;a=a;f.fbidToString=b;f.fbidFromString=c;f.adgroupIDToString=d;f.adgroupIDFromString=e;f.campaignIDToString=g;f.campaignIDFromString=h;f.campaignGroupIDToString=i;f.campaignGroupIDFromString=j;f.adAccountIDToString=k;f.adAccountIDFromString=l;f.creativeIDToString=m;f.creativeIDFromString=n;f.creativeObjectIDToString=o;f.creativeObjectIDFromString=p;f.adsAPITimeStringToString=q;f.adsAPITimeStringFromString=r;f.adsAPINumericStringToString=s;f.adsAPINumericStringFromString=t;f.zeroOrFBIDToString=u;f.zeroOrFBIDFromString=a}),null); __d("AdsSplitTestConstants",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({ADPUBLISHER_BUFFER_MINUTES:15,ADPUBLISHER_BUFFER_SECONDS:900,ATTRIBUTION_WINDOW_DAYS:28,SPLIT_TEST_BUCKETS:1e4,MAX_CONFIDENCE_THRESHOLD:95,MAX_LENGTH_DAYS:30,MIN_LENGTH_DAYS:1})}),null); __d("AdsUtils_SplitTest.bs",["DateTime","bs_js_primitive","AdsSplitTestConstants"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){var c=b("DateTime").now(a.getTimezoneID());return a.isBefore(c.addMinutes(b("AdsSplitTestConstants").ADPUBLISHER_BUFFER_MINUTES))}function g(a,c){return a.addDays(b("AdsSplitTestConstants").MIN_LENGTH_DAYS).isAfter(c)}function h(a,c){if(c!==void 0)return a.addDays(b("AdsSplitTestConstants").MAX_LENGTH_DAYS).isBefore(b("bs_js_primitive").valFromOption(c));else return!0}function c(a,c){if(g(a,c))return!0;else return h(a,b("bs_js_primitive").some(c))}f.validateStartTime=a;f.isSplitTestTooShort=g;f.isSplitTestTooLong=h;f.validateSplitTestLength=c}),null); __d("SplitTestConfigImpl.bs",["bs_js_primitive","AdsDataModelUtils.bs","bs_js_null_undefined"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g={budget:null,budget_mode:null,creation_source:null,early_winner_declaration_enabled:null,end_time:null,extend_winner_enabled:null,splits:null,start_time:null,test_variable:null};function a(a){return b("bs_js_primitive").nullable_to_opt(a.budget)}function c(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{budget:b("bs_js_null_undefined").fromOption(a)})}function d(a){return b("bs_js_primitive").nullable_to_opt(a.budget_mode)}function e(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{budget_mode:b("bs_js_null_undefined").fromOption(a)})}function h(a){return b("bs_js_primitive").nullable_to_opt(a.creation_source)}function i(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{creation_source:b("bs_js_null_undefined").fromOption(a)})}function j(a){return b("bs_js_primitive").nullable_to_opt(a.early_winner_declaration_enabled)}function k(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{early_winner_declaration_enabled:b("bs_js_null_undefined").fromOption(a)})}function l(a){return b("bs_js_primitive").nullable_to_opt(a.end_time)}function m(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{end_time:b("bs_js_null_undefined").fromOption(a)})}function n(a){return b("bs_js_primitive").nullable_to_opt(a.extend_winner_enabled)}function o(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{extend_winner_enabled:b("bs_js_null_undefined").fromOption(a)})}function p(a){return b("bs_js_primitive").nullable_to_opt(a.splits)}function q(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{splits:b("bs_js_null_undefined").fromOption(a)})}function r(a){return b("bs_js_primitive").nullable_to_opt(a.start_time)}function s(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{start_time:b("bs_js_null_undefined").fromOption(a)})}function t(a){return b("bs_js_primitive").nullable_to_opt(a.test_variable)}function u(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{test_variable:b("bs_js_null_undefined").fromOption(a)})}f.empty=g;f.getBudget=a;f.setBudget=c;f.getBudgetMode=d;f.setBudgetMode=e;f.getCreationSource=h;f.setCreationSource=i;f.getEarlyWinnerDeclarationEnabled=j;f.setEarlyWinnerDeclarationEnabled=k;f.getEndTime=l;f.setEndTime=m;f.getExtendedWinnerEnabled=n;f.setExtendedWinnerEnabled=o;f.getSplits=p;f.setSplits=q;f.getStartTime=r;f.setStartTime=s;f.getTestVariable=t;f.setTestVariable=u}),null); __d("SplitTestConfig.bs",["FBOption.bs","bs_js_primitive","SplitTestConfigImpl.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("SplitTestConfigImpl.bs").getBudget;function a(a,c){return b("SplitTestConfigImpl.bs").setBudget(a,c)}function c(a){return b("SplitTestConfigImpl.bs").setBudget(void 0,a)}function d(a,c){a=b("FBOption.bs").map(a,b("SplitTestConfigImpl.bs").getBudget(c));return b("SplitTestConfigImpl.bs").setBudget(a,c)}var h=b("SplitTestConfigImpl.bs").getBudgetMode;function e(a,c){return b("SplitTestConfigImpl.bs").setBudgetMode(b("bs_js_primitive").some(a),c)}function i(a){return b("SplitTestConfigImpl.bs").setBudgetMode(void 0,a)}function j(a,c){a=b("FBOption.bs").map(a,b("SplitTestConfigImpl.bs").getBudgetMode(c));return b("SplitTestConfigImpl.bs").setBudgetMode(a,c)}var k=b("SplitTestConfigImpl.bs").getCreationSource;function l(a,c){return b("SplitTestConfigImpl.bs").setCreationSource(b("bs_js_primitive").some(a),c)}function m(a){return b("SplitTestConfigImpl.bs").setCreationSource(void 0,a)}function n(a,c){a=b("FBOption.bs").map(a,b("SplitTestConfigImpl.bs").getCreationSource(c));return b("SplitTestConfigImpl.bs").setCreationSource(a,c)}var o=b("SplitTestConfigImpl.bs").getEarlyWinnerDeclarationEnabled;function p(a,c){return b("SplitTestConfigImpl.bs").setEarlyWinnerDeclarationEnabled(a,c)}function q(a){return b("SplitTestConfigImpl.bs").setEarlyWinnerDeclarationEnabled(void 0,a)}function r(a,c){a=b("FBOption.bs").map(a,b("SplitTestConfigImpl.bs").getEarlyWinnerDeclarationEnabled(c));return b("SplitTestConfigImpl.bs").setEarlyWinnerDeclarationEnabled(a,c)}var s=b("SplitTestConfigImpl.bs").getEndTime;function t(a,c){return b("SplitTestConfigImpl.bs").setEndTime(b("bs_js_primitive").some(a),c)}function u(a){return b("SplitTestConfigImpl.bs").setEndTime(void 0,a)}function v(a,c){a=b("FBOption.bs").map(a,b("SplitTestConfigImpl.bs").getEndTime(c));return b("SplitTestConfigImpl.bs").setEndTime(a,c)}var w=b("SplitTestConfigImpl.bs").getExtendedWinnerEnabled;function x(a,c){return b("SplitTestConfigImpl.bs").setExtendedWinnerEnabled(a,c)}function y(a){return b("SplitTestConfigImpl.bs").setExtendedWinnerEnabled(void 0,a)}function z(a,c){a=b("FBOption.bs").map(a,b("SplitTestConfigImpl.bs").getExtendedWinnerEnabled(c));return b("SplitTestConfigImpl.bs").setExtendedWinnerEnabled(a,c)}var A=b("SplitTestConfigImpl.bs").getSplits;function B(a,c){return b("SplitTestConfigImpl.bs").setSplits(a,c)}function C(a){return b("SplitTestConfigImpl.bs").setSplits(void 0,a)}function D(a,c){a=b("FBOption.bs").map(a,b("SplitTestConfigImpl.bs").getSplits(c));return b("SplitTestConfigImpl.bs").setSplits(a,c)}var E=b("SplitTestConfigImpl.bs").getStartTime;function F(a,c){return b("SplitTestConfigImpl.bs").setStartTime(b("bs_js_primitive").some(a),c)}function G(a){return b("SplitTestConfigImpl.bs").setStartTime(void 0,a)}function H(a,c){a=b("FBOption.bs").map(a,b("SplitTestConfigImpl.bs").getStartTime(c));return b("SplitTestConfigImpl.bs").setStartTime(a,c)}var I=b("SplitTestConfigImpl.bs").getTestVariable;function J(a,c){return b("SplitTestConfigImpl.bs").setTestVariable(b("bs_js_primitive").some(a),c)}function K(a){return b("SplitTestConfigImpl.bs").setTestVariable(void 0,a)}function L(a,c){a=b("FBOption.bs").map(a,b("SplitTestConfigImpl.bs").getTestVariable(c));return b("SplitTestConfigImpl.bs").setTestVariable(a,c)}f.getBudget=g;f.setBudget=a;f.deleteBudget=c;f.updateBudget=d;f.getBudgetMode=h;f.setBudgetMode=e;f.deleteBudgetMode=i;f.updateBudgetMode=j;f.getCreationSource=k;f.setCreationSource=l;f.deleteCreationSource=m;f.updateCreationSource=n;f.getEarlyWinnerDeclarationEnabled=o;f.setEarlyWinnerDeclarationEnabled=p;f.deleteEarlyWinnerDeclarationEnabled=q;f.updateEarlyWinnerDeclarationEnabled=r;f.getEndTime=s;f.setEndTime=t;f.deleteEndTime=u;f.updateEndTime=v;f.getExtendedWinnerEnabled=w;f.setExtendedWinnerEnabled=x;f.deleteExtendedWinnerEnabled=y;f.updateExtendedWinnerEnabled=z;f.getSplits=A;f.setSplits=B;f.deleteSplits=C;f.updateSplits=D;f.getStartTime=E;f.setStartTime=F;f.deleteStartTime=G;f.updateStartTime=H;f.getTestVariable=I;f.setTestVariable=J;f.deleteTestVariable=K;f.updateTestVariable=L}),null); __d("AdsCampaignGroupSplitTestScheduleValidator.bs",["bs_curry","AdsTypes.bs","DateTime","FBOption.bs","AdsAdAccount.bs","bs_js_primitive","AdsValidators.bs","SplitTestConfig.bs","AdsCampaignGroup.bs","AdsUtils_SplitTest.bs","AdsCampaignGroupValidator.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){return b("bs_js_primitive").some(a)}function c(a,c){__p&&__p();a=a[0];var d=c[0],e=c[3];if(b("FBOption.bs").isSome(b("AdsCampaignGroup.bs").getSplitTestConfig(c[1]))){d=b("AdsAdAccount.bs").getTimeZoneID(d);c=b("AdsCampaignGroup.bs").getSplitTestConfig(c[1]);if(c!==void 0){c=b("bs_js_primitive").valFromOption(c);var f=b("SplitTestConfig.bs").getStartTime(c);c=b("SplitTestConfig.bs").getEndTime(c);if(f!==void 0&&d!==void 0&&e!==void 0){d=d;f=b("DateTime").fromISOString(b("AdsTypes.bs").adsAPITimeStringToString(b("bs_js_primitive").valFromOption(f)),d);e&&b("AdsUtils_SplitTest.bs").validateStartTime(f)&&b("bs_curry")._3(a,void 0,void 0,10);if(c!==void 0){e=b("DateTime").fromISOString(b("AdsTypes.bs").adsAPITimeStringToString(b("bs_js_primitive").valFromOption(c)),d);if(b("AdsUtils_SplitTest.bs").validateSplitTestLength(f,e))return b("bs_curry")._3(a,void 0,void 0,9);else return 0}else return b("bs_curry")._3(a,void 0,void 0,9)}else return 0}else return 0}else return 0}d=b("bs_curry")._1(b("AdsCampaignGroupValidator.bs").Make,["AdsCampaignGroupSplitTestScheduleValidator",b("AdsValidators.bs").DefaultCampaignGroupValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsCampaignGroupSplitTestVariableValidator.bs",["bs_curry","bs_js_primitive","AdsValidators.bs","SplitTestConfig.bs","AdsCampaignGroup.bs","AdsCampaignGroupValidator.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){return[b("AdsCampaignGroup.bs").getSplitTestConfig(a[1])]}function c(a,c){c=c[0];if(c!==void 0){c=b("SplitTestConfig.bs").getTestVariable(b("bs_js_primitive").valFromOption(c));if(c!==void 0)return 0;else return b("bs_curry")._3(a[0],void 0,void 0,11)}else return 0}d=b("bs_curry")._1(b("AdsCampaignGroupValidator.bs").Make,["AdsCampaignGroupSplitTestVariableValidator",b("AdsValidators.bs").DefaultCampaignGroupValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsCampaignGroupStoreVisitsValidator.bs",["bs_block","bs_curry","bs_js_primitive","AdsValidators.bs","AdsCampaignGroup.bs","AdsEnum_Objective.bs","AdsPromotedObject.bs","AdsCampaignGroupValidator.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){a=a[1];var c=b("AdsCampaignGroup.bs").getObjective(a);a=b("AdsCampaignGroup.bs").getPromotedObject(a);if(c!==void 0){c=b("bs_js_primitive").valFromOption(c);if(a!==void 0)return[c,b("AdsPromotedObject.bs").getPageID(b("bs_js_primitive").valFromOption(a))];else return[c,void 0]}}function c(a,c){if(c[0]===b("AdsEnum_Objective.bs").store_visits){var d=c[1];if(d!==void 0)return 0;else return b("bs_curry")._3(a[0],void 0,void 0,b("bs_block").__(0,[c[0]]))}else return 0}d=b("bs_curry")._1(b("AdsCampaignGroupValidator.bs").Make,["AdsCampaignGroupStoreVisitsValidator",b("AdsValidators.bs").DefaultCampaignGroupValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsCampaignGroupValidatorList.bs",["AdsUVRollout.bs","AdsCampaignGroupNameValidator.bs","AdsCampaignGroupDeletedValidator.bs","AdsCampaignGroupStoreVisitsValidator.bs","AdsCampaignGroupProductCatalogValidator.bs","AdsCampaignGroupSplitTestScheduleValidator.bs","AdsCampaignGroupSplitTestVariableValidator.bs"],(function(a,b,c,d,e,f){"use strict";c=[b("AdsCampaignGroupDeletedValidator.bs").meta,b("AdsCampaignGroupDeletedValidator.bs").run,b("AdsCampaignGroupDeletedValidator.bs").isEligible];d=[[b("AdsCampaignGroupNameValidator.bs").meta,b("AdsCampaignGroupNameValidator.bs").run,b("AdsCampaignGroupNameValidator.bs").isEligible],[[b("AdsCampaignGroupProductCatalogValidator.bs").meta,b("AdsCampaignGroupProductCatalogValidator.bs").run,b("AdsCampaignGroupProductCatalogValidator.bs").isEligible],[[b("AdsCampaignGroupSplitTestScheduleValidator.bs").meta,b("AdsCampaignGroupSplitTestScheduleValidator.bs").run,b("AdsCampaignGroupSplitTestScheduleValidator.bs").isEligible],[[b("AdsCampaignGroupSplitTestVariableValidator.bs").meta,b("AdsCampaignGroupSplitTestVariableValidator.bs").run,b("AdsCampaignGroupSplitTestVariableValidator.bs").isEligible],[[b("AdsCampaignGroupStoreVisitsValidator.bs").meta,b("AdsCampaignGroupStoreVisitsValidator.bs").run,b("AdsCampaignGroupStoreVisitsValidator.bs").isEligible],0]]]]];var g=[c,d];function a(a){return b("AdsUVRollout.bs").filter(function(a){return a[0]},g,a)}f.getValidators=a}),null); __d("AdsCampaignValidator.bs",["Validators.bs"],(function(a,b,c,d,e,f){"use strict";a=b("Validators.bs").SimpleCacheValidator([]);c=a[0];f.Make=c}),null); __d("TargetingImpl.bs",["bs_js_primitive","AdsDataModelUtils.bs","bs_js_null_undefined"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g={age_max:null,age_min:null,audience_network_positions:null,brand_safety_content_filter_levels:null,connections:null,device_platforms:null,excluded_connections:null,excluded_publisher_categories:null,excluded_publisher_list_ids:null,excluded_user_device:null,facebook_positions:null,fb_deal_id:null,instagram_positions:null,messenger_positions:null,publisher_platforms:null,whatsapp_positions:null,user_device:null,user_os:null,wireless_carrier:null};function a(a){return b("bs_js_primitive").nullable_to_opt(a.age_max)}function c(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{age_max:b("bs_js_null_undefined").fromOption(a)})}function d(a){return b("bs_js_primitive").nullable_to_opt(a.age_min)}function e(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{age_min:b("bs_js_null_undefined").fromOption(a)})}function h(a){return b("bs_js_primitive").nullable_to_opt(a.audience_network_positions)}function i(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{audience_network_positions:b("bs_js_null_undefined").fromOption(a)})}function j(a){return b("bs_js_primitive").nullable_to_opt(a.brand_safety_content_filter_levels)}function k(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{brand_safety_content_filter_levels:b("bs_js_null_undefined").fromOption(a)})}function l(a){return b("bs_js_primitive").nullable_to_opt(a.connections)}function m(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{connections:b("bs_js_null_undefined").fromOption(a)})}function n(a){return b("bs_js_primitive").nullable_to_opt(a.device_platforms)}function o(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{device_platforms:b("bs_js_null_undefined").fromOption(a)})}function p(a){return b("bs_js_primitive").nullable_to_opt(a.excluded_connections)}function q(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{excluded_connections:b("bs_js_null_undefined").fromOption(a)})}function r(a){return b("bs_js_primitive").nullable_to_opt(a.excluded_publisher_categories)}function s(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{excluded_publisher_categories:b("bs_js_null_undefined").fromOption(a)})}function t(a){return b("bs_js_primitive").nullable_to_opt(a.excluded_publisher_list_ids)}function u(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{excluded_publisher_list_ids:b("bs_js_null_undefined").fromOption(a)})}function v(a){return b("bs_js_primitive").nullable_to_opt(a.excluded_user_device)}function w(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{excluded_user_device:b("bs_js_null_undefined").fromOption(a)})}function x(a){return b("bs_js_primitive").nullable_to_opt(a.facebook_positions)}function y(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{facebook_positions:b("bs_js_null_undefined").fromOption(a)})}function z(a){return b("bs_js_primitive").nullable_to_opt(a.fb_deal_id)}function A(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{fb_deal_id:b("bs_js_null_undefined").fromOption(a)})}function B(a){return b("bs_js_primitive").nullable_to_opt(a.instagram_positions)}function C(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{instagram_positions:b("bs_js_null_undefined").fromOption(a)})}function D(a){return b("bs_js_primitive").nullable_to_opt(a.messenger_positions)}function E(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{messenger_positions:b("bs_js_null_undefined").fromOption(a)})}function F(a){return b("bs_js_primitive").nullable_to_opt(a.publisher_platforms)}function G(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{publisher_platforms:b("bs_js_null_undefined").fromOption(a)})}function H(a){return b("bs_js_primitive").nullable_to_opt(a.whatsapp_positions)}function I(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{whatsapp_positions:b("bs_js_null_undefined").fromOption(a)})}function J(a){return b("bs_js_primitive").nullable_to_opt(a.user_device)}function K(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{user_device:b("bs_js_null_undefined").fromOption(a)})}function L(a){return b("bs_js_primitive").nullable_to_opt(a.user_os)}function M(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{user_os:b("bs_js_null_undefined").fromOption(a)})}function N(a){return b("bs_js_primitive").nullable_to_opt(a.wireless_carrier)}function O(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{wireless_carrier:b("bs_js_null_undefined").fromOption(a)})}f.empty=g;f.getAgeMax=a;f.setAgeMax=c;f.getAgeMin=d;f.setAgeMin=e;f.getAudienceNetworkPositions=h;f.setAudienceNetworkPositions=i;f.getBrandSafetyContentFilterLevels=j;f.setBrandSafetyContentFilterLevels=k;f.getConnections=l;f.setConnections=m;f.getDevicePlatforms=n;f.setDevicePlatforms=o;f.getExcludedConnections=p;f.setExcludedConnections=q;f.getExcludedPublisherCategories=r;f.setExcludedPublisherCategories=s;f.getExcludedPublisherListIDs=t;f.setExcludedPublisherListIDs=u;f.getExcludedUserDevices=v;f.setExcludedUserDevices=w;f.getFacebookPositions=x;f.setFacebookPositions=y;f.getFBDealID=z;f.setFBDealID=A;f.getInstagramPositions=B;f.setInstagramPositions=C;f.getMessengerPositions=D;f.setMessengerPositions=E;f.getPublisherPlatforms=F;f.setPublisherPlatforms=G;f.getWhatsAppPositions=H;f.setWhatsAppPositions=I;f.getUserDevices=J;f.setUserDevices=K;f.getUserOSs=L;f.setUserOSs=M;f.getWirelessCarriers=N;f.setWirelessCarriers=O}),null); __d("Targeting.bs",["FBOption.bs","bs_js_primitive","TargetingImpl.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("TargetingImpl.bs").getAgeMax;function a(a,c){return b("TargetingImpl.bs").setAgeMax(a,c)}function c(a){return b("TargetingImpl.bs").setAgeMax(void 0,a)}function d(a,c){a=b("FBOption.bs").map(a,b("TargetingImpl.bs").getAgeMax(c));return b("TargetingImpl.bs").setAgeMax(a,c)}var h=b("TargetingImpl.bs").getAgeMin;function e(a,c){return b("TargetingImpl.bs").setAgeMin(a,c)}function i(a){return b("TargetingImpl.bs").setAgeMin(void 0,a)}function j(a,c){a=b("FBOption.bs").map(a,b("TargetingImpl.bs").getAgeMin(c));return b("TargetingImpl.bs").setAgeMin(a,c)}var k=b("TargetingImpl.bs").getAudienceNetworkPositions;function l(a,c){return b("TargetingImpl.bs").setAudienceNetworkPositions(a,c)}function m(a){return b("TargetingImpl.bs").setAudienceNetworkPositions(void 0,a)}function n(a,c){a=b("FBOption.bs").map(a,b("TargetingImpl.bs").getAudienceNetworkPositions(c));return b("TargetingImpl.bs").setAudienceNetworkPositions(a,c)}var o=b("TargetingImpl.bs").getBrandSafetyContentFilterLevels;function p(a,c){return b("TargetingImpl.bs").setBrandSafetyContentFilterLevels(a,c)}function q(a){return b("TargetingImpl.bs").setBrandSafetyContentFilterLevels(void 0,a)}function r(a,c){a=b("FBOption.bs").map(a,b("TargetingImpl.bs").getBrandSafetyContentFilterLevels(c));return b("TargetingImpl.bs").setBrandSafetyContentFilterLevels(a,c)}var s=b("TargetingImpl.bs").getConnections;function t(a,c){return b("TargetingImpl.bs").setConnections(a,c)}function u(a){return b("TargetingImpl.bs").setConnections(void 0,a)}function v(a,c){a=b("FBOption.bs").map(a,b("TargetingImpl.bs").getConnections(c));return b("TargetingImpl.bs").setConnections(a,c)}var w=b("TargetingImpl.bs").getDevicePlatforms;function x(a,c){return b("TargetingImpl.bs").setDevicePlatforms(a,c)}function y(a){return b("TargetingImpl.bs").setDevicePlatforms(void 0,a)}function z(a,c){a=b("FBOption.bs").map(a,b("TargetingImpl.bs").getDevicePlatforms(c));return b("TargetingImpl.bs").setDevicePlatforms(a,c)}var A=b("TargetingImpl.bs").getExcludedConnections;function B(a,c){return b("TargetingImpl.bs").setExcludedConnections(a,c)}function C(a){return b("TargetingImpl.bs").setExcludedConnections(void 0,a)}function D(a,c){a=b("FBOption.bs").map(a,b("TargetingImpl.bs").getExcludedConnections(c));return b("TargetingImpl.bs").setExcludedConnections(a,c)}var E=b("TargetingImpl.bs").getExcludedPublisherCategories;function F(a,c){return b("TargetingImpl.bs").setExcludedPublisherCategories(a,c)}function G(a){return b("TargetingImpl.bs").setExcludedPublisherCategories(void 0,a)}function H(a,c){a=b("FBOption.bs").map(a,b("TargetingImpl.bs").getExcludedPublisherCategories(c));return b("TargetingImpl.bs").setExcludedPublisherCategories(a,c)}var I=b("TargetingImpl.bs").getExcludedPublisherListIDs;function J(a,c){return b("TargetingImpl.bs").setExcludedPublisherListIDs(a,c)}function K(a){return b("TargetingImpl.bs").setExcludedPublisherListIDs(void 0,a)}function L(a,c){a=b("FBOption.bs").map(a,b("TargetingImpl.bs").getExcludedPublisherListIDs(c));return b("TargetingImpl.bs").setExcludedPublisherListIDs(a,c)}var M=b("TargetingImpl.bs").getExcludedUserDevices;function N(a,c){return b("TargetingImpl.bs").setExcludedUserDevices(a,c)}function O(a){return b("TargetingImpl.bs").setExcludedUserDevices(void 0,a)}function P(a,c){a=b("FBOption.bs").map(a,b("TargetingImpl.bs").getExcludedUserDevices(c));return b("TargetingImpl.bs").setExcludedUserDevices(a,c)}var Q=b("TargetingImpl.bs").getFacebookPositions;function R(a,c){return b("TargetingImpl.bs").setFacebookPositions(a,c)}function S(a){return b("TargetingImpl.bs").setFacebookPositions(void 0,a)}function T(a,c){a=b("FBOption.bs").map(a,b("TargetingImpl.bs").getFacebookPositions(c));return b("TargetingImpl.bs").setFacebookPositions(a,c)}var U=b("TargetingImpl.bs").getFBDealID;function V(a,c){return b("TargetingImpl.bs").setFBDealID(b("bs_js_primitive").some(a),c)}function W(a){return b("TargetingImpl.bs").setFBDealID(void 0,a)}function X(a,c){a=b("FBOption.bs").map(a,b("TargetingImpl.bs").getFBDealID(c));return b("TargetingImpl.bs").setFBDealID(a,c)}var Y=b("TargetingImpl.bs").getInstagramPositions;function Z(a,c){return b("TargetingImpl.bs").setInstagramPositions(a,c)}function $(a){return b("TargetingImpl.bs").setInstagramPositions(void 0,a)}function aa(a,c){a=b("FBOption.bs").map(a,b("TargetingImpl.bs").getInstagramPositions(c));return b("TargetingImpl.bs").setInstagramPositions(a,c)}var ba=b("TargetingImpl.bs").getMessengerPositions;function ca(a,c){return b("TargetingImpl.bs").setMessengerPositions(a,c)}function da(a){return b("TargetingImpl.bs").setMessengerPositions(void 0,a)}function ea(a,c){a=b("FBOption.bs").map(a,b("TargetingImpl.bs").getMessengerPositions(c));return b("TargetingImpl.bs").setMessengerPositions(a,c)}var fa=b("TargetingImpl.bs").getPublisherPlatforms;function ga(a,c){return b("TargetingImpl.bs").setPublisherPlatforms(a,c)}function ha(a){return b("TargetingImpl.bs").setPublisherPlatforms(void 0,a)}function ia(a,c){a=b("FBOption.bs").map(a,b("TargetingImpl.bs").getPublisherPlatforms(c));return b("TargetingImpl.bs").setPublisherPlatforms(a,c)}var ja=b("TargetingImpl.bs").getWhatsAppPositions;function ka(a,c){return b("TargetingImpl.bs").setWhatsAppPositions(a,c)}function la(a){return b("TargetingImpl.bs").setWhatsAppPositions(void 0,a)}function ma(a,c){a=b("FBOption.bs").map(a,b("TargetingImpl.bs").getWhatsAppPositions(c));return b("TargetingImpl.bs").setWhatsAppPositions(a,c)}var na=b("TargetingImpl.bs").getUserDevices;function oa(a,c){return b("TargetingImpl.bs").setUserDevices(a,c)}function pa(a){return b("TargetingImpl.bs").setUserDevices(void 0,a)}function qa(a,c){a=b("FBOption.bs").map(a,b("TargetingImpl.bs").getUserDevices(c));return b("TargetingImpl.bs").setUserDevices(a,c)}var ra=b("TargetingImpl.bs").getUserOSs;function sa(a,c){return b("TargetingImpl.bs").setUserOSs(a,c)}function ta(a){return b("TargetingImpl.bs").setUserOSs(void 0,a)}function ua(a,c){a=b("FBOption.bs").map(a,b("TargetingImpl.bs").getUserOSs(c));return b("TargetingImpl.bs").setUserOSs(a,c)}var va=b("TargetingImpl.bs").getWirelessCarriers;function wa(a,c){return b("TargetingImpl.bs").setWirelessCarriers(a,c)}function xa(a){return b("TargetingImpl.bs").setWirelessCarriers(void 0,a)}function ya(a,c){a=b("FBOption.bs").map(a,b("TargetingImpl.bs").getWirelessCarriers(c));return b("TargetingImpl.bs").setWirelessCarriers(a,c)}f.getAgeMax=g;f.setAgeMax=a;f.deleteAgeMax=c;f.updateAgeMax=d;f.getAgeMin=h;f.setAgeMin=e;f.deleteAgeMin=i;f.updateAgeMin=j;f.getAudienceNetworkPositions=k;f.setAudienceNetworkPositions=l;f.deleteAudienceNetworkPositions=m;f.updateAudienceNetworkPositions=n;f.getBrandSafetyContentFilterLevels=o;f.setBrandSafetyContentFilterLevels=p;f.deleteBrandSafetyContentFilterLevels=q;f.updateBrandSafetyContentFilterLevels=r;f.getConnections=s;f.setConnections=t;f.deleteConnections=u;f.updateConnections=v;f.getDevicePlatforms=w;f.setDevicePlatforms=x;f.deleteDevicePlatforms=y;f.updateDevicePlatforms=z;f.getExcludedConnections=A;f.setExcludedConnections=B;f.deleteExcludedConnections=C;f.updateExcludedConnections=D;f.getExcludedPublisherCategories=E;f.setExcludedPublisherCategories=F;f.deleteExcludedPublisherCategories=G;f.updateExcludedPublisherCategories=H;f.getExcludedPublisherListIDs=I;f.setExcludedPublisherListIDs=J;f.deleteExcludedPublisherListIDs=K;f.updateExcludedPublisherListIDs=L;f.getExcludedUserDevices=M;f.setExcludedUserDevices=N;f.deleteExcludedUserDevices=O;f.updateExcludedUserDevices=P;f.getFacebookPositions=Q;f.setFacebookPositions=R;f.deleteFacebookPositions=S;f.updateFacebookPositions=T;f.getFBDealID=U;f.setFBDealID=V;f.deleteFBDealID=W;f.updateFBDealID=X;f.getInstagramPositions=Y;f.setInstagramPositions=Z;f.deleteInstagramPositions=$;f.updateInstagramPositions=aa;f.getMessengerPositions=ba;f.setMessengerPositions=ca;f.deleteMessengerPositions=da;f.updateMessengerPositions=ea;f.getPublisherPlatforms=fa;f.setPublisherPlatforms=ga;f.deletePublisherPlatforms=ha;f.updatePublisherPlatforms=ia;f.getWhatsAppPositions=ja;f.setWhatsAppPositions=ka;f.deleteWhatsAppPositions=la;f.updateWhatsAppPositions=ma;f.getUserDevices=na;f.setUserDevices=oa;f.deleteUserDevices=pa;f.updateUserDevices=qa;f.getUserOSs=ra;f.setUserOSs=sa;f.deleteUserOSs=ta;f.updateUserOSs=ua;f.getWirelessCarriers=va;f.setWirelessCarriers=wa;f.deleteWirelessCarriers=xa;f.updateWirelessCarriers=ya}),null); __d("AdsCampaignAgeValidator.bs",["bs_curry","Targeting.bs","AdsUVPaths.bs","AdsCampaign.bs","AdsValidators.bs","AdsAPITargetFields","AdsValidationConsts","AdsCampaignValidator.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){return b("AdsCampaign.bs").getTargeting(a[2])}function c(a,c){__p&&__p();a=a[0];var d=b("Targeting.bs").getAgeMin(c);c=b("Targeting.bs").getAgeMax(c);if(d!==void 0)if(c!==void 0)if(db("AdsValidationConsts").maxAge)return b("bs_curry")._3(a,b("AdsAPITargetFields").AGE_MAX,b("AdsUVPaths.bs").Campaign[1][1],17);else if(d>c)return b("bs_curry")._3(a,b("AdsAPITargetFields").AGE_MIN,b("AdsUVPaths.bs").Campaign[1][0],18);else return 0;else return b("bs_curry")._3(a,b("AdsAPITargetFields").AGE_MAX,b("AdsUVPaths.bs").Campaign[1][1],17);else return b("bs_curry")._3(a,b("AdsAPITargetFields").AGE_MIN,b("AdsUVPaths.bs").Campaign[1][0],16)}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignAgeValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsEnum_PromotedObjectTypes.bs",["AdsPromotedObjectTypes"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=b("AdsPromotedObjectTypes").CANVAS_APP;c=b("AdsPromotedObjectTypes").MESSENGER;d=b("AdsPromotedObjectTypes").MOBILE_APP;e=b("AdsPromotedObjectTypes").NONE;var g=b("AdsPromotedObjectTypes").OFFLINE_EVENT_SET,h=b("AdsPromotedObjectTypes").ONSITE,i=b("AdsPromotedObjectTypes").PIXEL,j=b("AdsPromotedObjectTypes").PLACE_PAGE_SET_ID,k=b("AdsPromotedObjectTypes").PRODUCT_SET,l=b("AdsPromotedObjectTypes").SPONSORED_MESSAGES,m=b("AdsPromotedObjectTypes").WEBSITE;b=b("AdsPromotedObjectTypes").WHATSAPP;f.canvas_app=a;f.messenger=c;f.mobile_app=d;f.none=e;f.offline_event_set=g;f.onsite=h;f.pixel=i;f.place_page_set_id=j;f.product_set=k;f.sponsored_messages=l;f.website=m;f.whatsapp=b}),null); __d("AdsMobileAppObjectivesUtils.bs",["bs_list","AdsEnum_Objective.bs","AdsEnum_PromotedObjectTypes.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();c=[b("AdsEnum_Objective.bs").mobile_app_engagement,0];var g=[b("AdsEnum_Objective.bs").mobile_app_installs,c];function a(a,c){if(a===b("AdsEnum_Objective.bs").app_installs)return c===b("AdsEnum_PromotedObjectTypes.bs").mobile_app;else if(b("bs_list").exists(function(b){return b===a},g)||a===b("AdsEnum_Objective.bs").conversions&&c===b("AdsEnum_PromotedObjectTypes.bs").mobile_app)return!0;else if(a===b("AdsEnum_Objective.bs").link_clicks)return c===b("AdsEnum_PromotedObjectTypes.bs").mobile_app;else return!1}f.mobileAppAPIObjectives=g;f.isMobileAppObjective=a}),null); __d("AdsAppUtils.bs",["bs_list","AdsEnum_Objective.bs","AdsEnum_OptimizationGoal.bs","AdsEnum_PromotedObjectTypes.bs","AdsMobileAppObjectivesUtils.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();d=[b("AdsEnum_Objective.bs").canvas_app_engagement,0];var g=[b("AdsEnum_Objective.bs").canvas_app_installs,d];function h(a,c){if(c===b("AdsEnum_PromotedObjectTypes.bs").canvas_app)return!0;else return b("bs_list").exists(function(b){return b===a},g)}function a(a,c){if(a===b("AdsEnum_Objective.bs").app_installs||h(a,c))return!0;else return b("AdsMobileAppObjectivesUtils.bs").isMobileAppObjective(a,c)}function i(a){if(a===b("AdsEnum_Objective.bs").app_installs||a===b("AdsEnum_Objective.bs").mobile_app_installs)return!0;else return a===b("AdsEnum_Objective.bs").canvas_app_installs}function c(a,c){if(i(a))if(c===b("AdsEnum_OptimizationGoal.bs").offsite_conversions)return!0;else return c===b("AdsEnum_OptimizationGoal.bs").app_installs;else return!1}f.canvasAppAPIObjectives=g;f.isCanvasAppObjective=h;f.isAppObjective=a;f.isAppInstall=i;f.isPermissionCheckRequired=c}),null); __d("AdsPromotedObjectAppUtils.bs",["AdsEnum_PromotedObjectTypes.bs"],(function(a,b,c,d,e,f){"use strict";function a(a){if(a===b("AdsEnum_PromotedObjectTypes.bs").mobile_app)return!0;else return a===b("AdsEnum_PromotedObjectTypes.bs").canvas_app}f.isAppType=a}),null); __d("AdsCampaignAppEventValidator.bs",["bs_curry","FBOption.bs","AdsUVPaths.bs","AdsAppUtils.bs","AdsCampaign.bs","bs_js_primitive","AdsValidators.bs","AdsCampaignGroup.bs","AdsEnum_Objective.bs","AdsPromotedObject.bs","AdsCampaignValidator.bs","AdsEnum_OptimizationGoal.bs","AdsPromotedObjectAppUtils.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){var c=a[2],d=b("AdsCampaignGroup.bs").getObjective(a[3]),e=b("AdsCampaign.bs").getOptimizationGoal(c);c=b("AdsCampaign.bs").getPromotedObject(c);if(d!==void 0&&e!==void 0&&c!==void 0)return[b("bs_js_primitive").valFromOption(d),b("bs_js_primitive").valFromOption(e),b("bs_js_primitive").valFromOption(c),a[11]]}function g(a){var c=a[0],d=b("AdsPromotedObject.bs").getApplicationID(a[2]),e=b("AdsPromotedObject.bs").getObjectStoreURL(a[2]),f=c===b("AdsEnum_Objective.bs").conversions&&b("AdsPromotedObjectAppUtils.bs").isAppType(a[3]);c=b("AdsAppUtils.bs").isAppInstall(c)&&a[1]===b("AdsEnum_OptimizationGoal.bs").offsite_conversions;if((c||f)&&b("FBOption.bs").isSome(d))return b("FBOption.bs").isSome(e);else return!1}function c(a,c){__p&&__p();a=a[0];if(g(c)){var d=b("AdsPromotedObject.bs").getCustomEventType(c[2]);if(d!==void 0)return 0;else{d=b("AdsAppUtils.bs").isAppInstall(c[0]);if(d)return b("bs_curry")._3(a,void 0,b("AdsUVPaths.bs").Campaign[3],46);else return b("bs_curry")._3(a,void 0,b("AdsUVPaths.bs").Campaign[0][1],47)}}else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignAppEventValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("ApplicationInfoImpl.bs",["bs_js_primitive","AdsDataModelUtils.bs","bs_js_null_undefined"],(function(a,b,c,d,e,f){"use strict";d={is_admin:null};function a(a){return b("bs_js_primitive").nullable_to_opt(a.is_admin)}function c(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{is_admin:b("bs_js_null_undefined").fromOption(a)})}f.empty=d;f.getIsAdmin=a;f.setIsAdmin=c}),null); __d("ApplicationInfo.bs",["FBOption.bs","ApplicationInfoImpl.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();e=b("ApplicationInfoImpl.bs").getIsAdmin;function a(a,c){return b("ApplicationInfoImpl.bs").setIsAdmin(a,c)}function c(a){return b("ApplicationInfoImpl.bs").setIsAdmin(void 0,a)}function d(a,c){a=b("FBOption.bs").map(a,b("ApplicationInfoImpl.bs").getIsAdmin(c));return b("ApplicationInfoImpl.bs").setIsAdmin(a,c)}f.getIsAdmin=e;f.setIsAdmin=a;f.deleteIsAdmin=c;f.updateIsAdmin=d}),null); __d("AdsCampaignAppPermissionValidator.bs",["FB.bs","bs_curry","FBOption.bs","AdsAppUtils.bs","AdsCampaign.bs","bs_js_primitive","AdsValidators.bs","ApplicationInfo.bs","AdsCampaignGroup.bs","AdsCampaignValidator.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){var c=b("AdsCampaignGroup.bs").getObjective(a[3]),d=b("AdsCampaign.bs").getOptimizationGoal(a[2]);if(c!==void 0&&d!==void 0)return[a[1],a[8],b("bs_js_primitive").valFromOption(c),b("bs_js_primitive").valFromOption(d),a[11]]}function g(a){var c=a[2];if(b("AdsAppUtils.bs").isAppObjective(c,a[4]))return b("AdsAppUtils.bs").isPermissionCheckRequired(c,a[3]);else return!1}function c(a,c){if(g(c)){var d=b("FBOption.bs").$$default(!1,b("FB.bs").$great$great$eq(c[0],b("ApplicationInfo.bs").getIsAdmin));if(b("FBOption.bs").$$default(!1,c[1])!==!0||d===!0)return 0;else return b("bs_curry")._3(a[0],void 0,void 0,55)}else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignAppPermissionValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("URLLib.bs",["ads-lib-urllib"],(function(a,b,c,d,e,f){"use strict";function a(a){return b("ads-lib-urllib").isUrl(a)}f.isURL=a}),null); __d("AdsCampaignApplicationValidator.bs",["bs_block","bs_curry","URLLib.bs","FBOption.bs","AdsUVPaths.bs","AdsAppUtils.bs","AdsCampaign.bs","bs_js_primitive","AdsValidators.bs","AdsCampaignGroup.bs","AdsPromotedObject.bs","AdsCampaignValidator.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){var c=b("AdsCampaignGroup.bs").getObjective(a[3]),d=b("AdsCampaign.bs").getPromotedObject(a[2]);if(c!==void 0&&d!==void 0)return[a[1],a[8],b("bs_js_primitive").valFromOption(c),b("bs_js_primitive").valFromOption(d),a[11]]}function g(a){return b("AdsAppUtils.bs").isAppObjective(a[2],a[4])}function c(a,c){__p&&__p();a=a[0];if(g(c)&&b("FBOption.bs").$$default(!1,c[1])===!0){var d=c[3],e=b("AdsPromotedObject.bs").getApplicationID(d);d=b("AdsPromotedObject.bs").getObjectStoreURL(d);d=b("URLLib.bs").isURL(d);if(d)return 0;else if(e!==void 0)return b("bs_curry")._3(a,void 0,b("AdsUVPaths.bs").Campaign[0][2],56);else return b("bs_curry")._3(a,void 0,b("AdsUVPaths.bs").Campaign[0][0],b("bs_block").__(0,[c[2]]))}else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignApplicationValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsPlacementExcludeCategories",[],(function(a,b,c,d,e,f){"use strict";a=Object.freeze({DATING:"dating",GAMBLING:"gambling",MATURE_AUDIENCES:"mature_audiences",TRAGEDY_AND_CONFLICT:"tragedy_and_conflict",DEBATED_SOCIAL_ISSUES:"debated_social_issues"});e.exports=a}),null); __d("AdsEnum_PlacementExcludeCategories.bs",["AdsPlacementExcludeCategories"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=b("AdsPlacementExcludeCategories").DATING;c=b("AdsPlacementExcludeCategories").GAMBLING;d=b("AdsPlacementExcludeCategories").MATURE_AUDIENCES;e=b("AdsPlacementExcludeCategories").TRAGEDY_AND_CONFLICT;b=b("AdsPlacementExcludeCategories").DEBATED_SOCIAL_ISSUES;f.dating=a;f.gambling=c;f.mature_audiences=d;f.tragedy_and_conflict=e;f.debated_social_issues=b}),null); __d("AdsCampaignCategoryBlockListMigrationValidator.bs",["bs_list","bs_array","bs_curry","Targeting.bs","AdsCampaign.bs","bs_js_primitive","AdsValidators.bs","AdsCampaignValidator.bs","AdsEnum_PlacementExcludeCategories.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){a=b("AdsCampaign.bs").getTargeting(a[2]);if(a!==void 0)return b("Targeting.bs").getExcludedPublisherCategories(b("bs_js_primitive").valFromOption(a))}function c(a,c){c=b("bs_list").exists(function(a){if(a!==b("AdsEnum_PlacementExcludeCategories.bs").dating&&a!==b("AdsEnum_PlacementExcludeCategories.bs").debated_social_issues&&a!==b("AdsEnum_PlacementExcludeCategories.bs").gambling&&a!==b("AdsEnum_PlacementExcludeCategories.bs").mature_audiences)return a!==b("AdsEnum_PlacementExcludeCategories.bs").tragedy_and_conflict;else return!1},b("bs_array").to_list(c));if(c)return b("bs_curry")._3(a[0],void 0,void 0,19);else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignCategoryBlockListMigrationValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("IDNamePairImpl.bs",["bs_js_primitive","AdsDataModelUtils.bs","bs_js_null_undefined"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g={id:null,name:null};function a(a){return b("bs_js_primitive").nullable_to_opt(a.id)}function c(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{id:b("bs_js_null_undefined").fromOption(a)})}function d(a){return b("bs_js_primitive").nullable_to_opt(a.name)}function e(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{name:b("bs_js_null_undefined").fromOption(a)})}f.empty=g;f.getID=a;f.setID=c;f.getName=d;f.setName=e}),null); __d("IDNamePair.bs",["FBOption.bs","bs_js_primitive","IDNamePairImpl.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("IDNamePairImpl.bs").getID;function a(a,c){return b("IDNamePairImpl.bs").setID(b("bs_js_primitive").some(a),c)}function c(a){return b("IDNamePairImpl.bs").setID(void 0,a)}function d(a,c){a=b("FBOption.bs").map(a,b("IDNamePairImpl.bs").getID(c));return b("IDNamePairImpl.bs").setID(a,c)}var h=b("IDNamePairImpl.bs").getName;function e(a,c){return b("IDNamePairImpl.bs").setName(a,c)}function i(a){return b("IDNamePairImpl.bs").setName(void 0,a)}function j(a,c){a=b("FBOption.bs").map(a,b("IDNamePairImpl.bs").getName(c));return b("IDNamePairImpl.bs").setName(a,c)}f.getID=g;f.setID=a;f.deleteID=c;f.updateID=d;f.getName=h;f.setName=e;f.deleteName=i;f.updateName=j}),null); __d("AdsTargetingUtils.bs",["bs_list","bs_array","AdsArray.bs","FBOption.bs","IDNamePair.bs"],(function(a,b,c,d,e,f){"use strict";function a(a,c){var d=b("bs_array").of_list(b("bs_list").filter(b("FBOption.bs").isSome)(b("bs_list").map(b("IDNamePair.bs").getID,b("bs_array").to_list(a))));return b("bs_array").of_list(b("bs_list").filter(function(a){return b("AdsArray.bs").contains(void 0,b("IDNamePair.bs").getID(a),d)})(b("bs_array").to_list(c)))}f.checkConnectionsConflicts=a}),null); __d("AdsCampaignConnectionsValidator.bs",["bs_curry","AdsArray.bs","FBOption.bs","Targeting.bs","AdsUVPaths.bs","AdsCampaign.bs","bs_js_primitive","AdsValidators.bs","AdsTargetingUtils.bs","AdsCampaignValidator.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){a=b("AdsCampaign.bs").getTargeting(a[2]);if(a!==void 0){a=b("bs_js_primitive").valFromOption(a);return[b("Targeting.bs").getConnections(a),b("Targeting.bs").getExcludedConnections(a)]}}function g(a){var c=a[1];a=a[0];if(a!==void 0&&c!==void 0&&b("AdsArray.bs").length(a)>0)return b("AdsArray.bs").length(c)>0;else return!1}function c(a,c){if(g(c)){var d=b("FBOption.bs").$$default([],c[0]);c=b("FBOption.bs").$$default([],c[1]);d=b("AdsTargetingUtils.bs").checkConnectionsConflicts(d,c);if(b("AdsArray.bs").length(d)>0)return b("bs_curry")._3(a[0],void 0,b("AdsUVPaths.bs").Campaign[1][2],50);else return 0}else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignConnectionsValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsCampaignConversionOfflineEventSetValidator.bs",["bs_curry","FBOption.bs","AdsUVPaths.bs","AdsCampaign.bs","bs_js_primitive","AdsValidators.bs","AdsCampaignGroup.bs","AdsEnum_Objective.bs","AdsPromotedObject.bs","AdsCampaignValidator.bs","AdsEnum_OptimizationGoal.bs","AdsAPIPromotedObjectFields","AdsEnum_PromotedObjectTypes.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){var c=a[2],d=b("AdsCampaignGroup.bs").getObjective(a[3]),e=b("AdsCampaign.bs").getPromotedObject(c);c=b("AdsCampaign.bs").getOptimizationGoal(c);if(d!==void 0&&e!==void 0&&c!==void 0)return[b("bs_js_primitive").valFromOption(d),b("bs_js_primitive").valFromOption(e),b("bs_js_primitive").valFromOption(c),a[11]]}function g(a){if(a[0]===b("AdsEnum_Objective.bs").conversions)if(a[2]===b("AdsEnum_OptimizationGoal.bs").offline_conversions)return!0;else return a[3]===b("AdsEnum_PromotedObjectTypes.bs").offline_event_set;else return!1}function c(a,c){var d=b("AdsPromotedObject.bs").getOfflineConversionDataSetID(c[1]);if(g(c)&&b("FBOption.bs").isNone(d))return b("bs_curry")._3(a[0],b("AdsAPIPromotedObjectFields").OFFLINE_CONVERSION_DATA_SET_ID,b("AdsUVPaths.bs").Campaign[0][4],20);else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignConversionOfflineEventSetValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsWebsiteAdUtils.bs",["bs_caml_obj","AdsEnum_Objective.bs","AdsEnum_PromotedObjectTypes.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a,c){if(a===b("AdsEnum_Objective.bs").conversions)if(b("bs_caml_obj").caml_equal(c,b("AdsEnum_PromotedObjectTypes.bs").none))return!0;else return c===b("AdsEnum_PromotedObjectTypes.bs").pixel;else return!1}function c(a,c){if(a===b("AdsEnum_Objective.bs").conversions)return c===b("AdsEnum_PromotedObjectTypes.bs").mobile_app;else return!1}function d(a,c){if(a===b("AdsEnum_Objective.bs").conversions)return c===b("AdsEnum_PromotedObjectTypes.bs").messenger;else return!1}f.isWebsiteConversionsObjective=a;f.isWebsiteConversionsAppObjective=c;f.isWebsiteConversionsMessengerObjective=d}),null); __d("AdsCampaignConversionPixelValidator.bs",["bs_curry","FBOption.bs","AdsUVPaths.bs","AdsCampaign.bs","bs_js_primitive","AdsValidators.bs","AdsCampaignGroup.bs","AdsEnum_Objective.bs","AdsPromotedObject.bs","AdsWebsiteAdUtils.bs","AdsCampaignValidator.bs","AdsEnum_OptimizationGoal.bs","AdsAPIPromotedObjectFields"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){var c=a[2],d=b("AdsCampaignGroup.bs").getObjective(a[3]),e=b("AdsCampaign.bs").getOptimizationGoal(c);c=b("AdsCampaign.bs").getPromotedObject(c);if(d!==void 0&&e!==void 0&&c!==void 0)return[b("bs_js_primitive").valFromOption(d),b("bs_js_primitive").valFromOption(e),b("bs_js_primitive").valFromOption(c),a[11]]}function g(a){var c=a[3],d=a[0],e=b("AdsPromotedObject.bs").getApplicationID(a[2]);if(b("AdsWebsiteAdUtils.bs").isWebsiteConversionsObjective(d,c)||b("FBOption.bs").isNone(e)&&b("AdsWebsiteAdUtils.bs").isWebsiteConversionsMessengerObjective(d,c))return!0;else if(d===b("AdsEnum_Objective.bs").link_clicks||d===b("AdsEnum_Objective.bs").offer_claims)return a[1]===b("AdsEnum_OptimizationGoal.bs").offsite_conversions;else return!1}function c(a,c){if(g(c)){c=c[2];var d=b("AdsPromotedObject.bs").getPixelID(c);c=b("AdsPromotedObject.bs").getCustomConversionID(c);if(b("FBOption.bs").isNone(d)&&b("FBOption.bs").isNone(c))return b("bs_curry")._3(a[0],b("AdsAPIPromotedObjectFields").PIXEL_ID,b("AdsUVPaths.bs").Campaign[0][6],33);else return 0}else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignConversionPixelValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsAudienceDirectConfig.bs",["AdsAudienceDirectConfig"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=[void 0];function a(a){g[0]=a;return 0}d=[g,a];function c(){var a=g[0];if(a!==void 0)return a;else return b("AdsAudienceDirectConfig").isDirectDealsUser}f.Mock=d;f.isDirectDealsUser=c}),null); __d("DirectDealDetailsImpl.bs",["bs_js_primitive","AdsDataModelUtils.bs","bs_js_null_undefined"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g={id:null,lifetimeBudget:null};function a(a){return b("bs_js_primitive").nullable_to_opt(a.id)}function c(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{id:b("bs_js_null_undefined").fromOption(a)})}function d(a){return b("bs_js_primitive").nullable_to_opt(a.lifetimeBudget)}function e(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{lifetimeBudget:b("bs_js_null_undefined").fromOption(a)})}f.empty=g;f.getID=a;f.setID=c;f.getLifetimeBudget=d;f.setLifetimeBudget=e}),null); __d("DirectDealDetails.bs",["FBOption.bs","bs_js_primitive","DirectDealDetailsImpl.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("DirectDealDetailsImpl.bs").getID;function a(a,c){return b("DirectDealDetailsImpl.bs").setID(b("bs_js_primitive").some(a),c)}function c(a){return b("DirectDealDetailsImpl.bs").setID(void 0,a)}function d(a,c){a=b("FBOption.bs").map(a,b("DirectDealDetailsImpl.bs").getID(c));return b("DirectDealDetailsImpl.bs").setID(a,c)}var h=b("DirectDealDetailsImpl.bs").getLifetimeBudget;function e(a,c){return b("DirectDealDetailsImpl.bs").setLifetimeBudget(b("bs_js_primitive").some(a),c)}function i(a){return b("DirectDealDetailsImpl.bs").setLifetimeBudget(void 0,a)}function j(a,c){a=b("FBOption.bs").map(a,b("DirectDealDetailsImpl.bs").getLifetimeBudget(c));return b("DirectDealDetailsImpl.bs").setLifetimeBudget(a,c)}f.getID=g;f.setID=a;f.deleteID=c;f.updateID=d;f.getLifetimeBudget=h;f.setLifetimeBudget=e;f.deleteLifetimeBudget=i;f.updateLifetimeBudget=j}),null); __d("AdsCampaignDealValidator.bs",["bs_curry","AdsTypes.bs","FBOption.bs","Targeting.bs","AdsUVPaths.bs","AdsCampaign.bs","bs_caml_format","AdsAdAccount.bs","bs_js_primitive","AdsValidators.bs","DirectDealDetails.bs","AdsCampaignValidator.bs","AdsAudienceDirectConfig.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){var c=b("AdsCampaign.bs").getTargeting(a[2]);if(c!==void 0)return[a[0],b("Targeting.bs").getFBDealID(b("bs_js_primitive").valFromOption(c)),a[6]]}function c(a,c){__p&&__p();a=a[0];if(b("AdsAudienceDirectConfig.bs").isDirectDealsUser(0)){var d=c[2],e=c[0];if(b("FBOption.bs").isNone(c[1]))return b("bs_curry")._3(a,void 0,b("AdsUVPaths.bs").Campaign[1][4],58);else if(d!==void 0){c=b("DirectDealDetails.bs").getLifetimeBudget(b("bs_js_primitive").valFromOption(d));if(c!==void 0){d=b("bs_caml_format").caml_float_of_string(b("AdsTypes.bs").adsAPINumericStringToString(b("FBOption.bs").$$default(b("AdsTypes.bs").adsAPINumericStringFromString("0"),b("AdsAdAccount.bs").getAmountSpent(e))));e=b("AdsAdAccount.bs").getSpendCap(e);if(e!==void 0){e=b("bs_caml_format").caml_float_of_string(b("AdsTypes.bs").adsAPINumericStringToString(b("bs_js_primitive").valFromOption(e)));c=b("bs_caml_format").caml_float_of_string(b("AdsTypes.bs").adsAPINumericStringToString(b("bs_js_primitive").valFromOption(c)));e=e-d;d=e-c;if(d<0)return b("bs_curry")._3(a,void 0,b("AdsUVPaths.bs").Campaign[1][4],57);else return 0}else return 0}else return 0}else return 0}else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignDealValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsCampaignDeletedValidator.bs",["bs_curry","FBOption.bs","AdsUVPaths.bs","AdsCampaign.bs","bs_js_primitive","AdsValidators.bs","FBImmutableSet.bs","AdsCampaignValidator.bs","AdsEnum_AdsRunStatus.bs","AdsAPIAdCampaignGroupFields"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){var c=b("AdsCampaign.bs").getStatus(a[2]),d=b("AdsCampaign.bs").getStatus(a[9]),e=b("FBOption.bs").$$default(!1,a[8]);if(c!==void 0&&d!==void 0)return[b("bs_js_primitive").valFromOption(c),a[4],e,b("bs_js_primitive").valFromOption(d)]}function g(a,c,d){if(c)return!1;else if(a===b("AdsEnum_AdsRunStatus.bs").archived)return!0;else return d===b("AdsEnum_AdsRunStatus.bs").archived}var h=b("FBImmutableSet.bs").fromList([b("AdsAPIAdCampaignGroupFields").NAME,[b("AdsAPIAdCampaignGroupFields").STATUS,0]]);function c(a,c){var d=c[0];if(g(d,c[2],c[3])){c=b("FBImmutableSet.bs").some(function(a){return!b("FBImmutableSet.bs").has(a,h)},c[1]);if(c||d!==b("AdsEnum_AdsRunStatus.bs").archived)return b("bs_curry")._3(a[0],void 0,b("AdsUVPaths.bs").Campaign[5],21);else return 0}else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignDeletedValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsEnum_InstagramPosition.bs",["AdsAPIInstagramPosition"],(function(a,b,c,d,e,f){"use strict";a=b("AdsAPIInstagramPosition").EXPLORE;c=b("AdsAPIInstagramPosition").IGTV;d=b("AdsAPIInstagramPosition").STORY;e=b("AdsAPIInstagramPosition").STREAM;f.explore=a;f.igtv=c;f.story=d;f.stream=e}),null); __d("AdsEnum_PublisherPlatform.bs",["AdsAPIPublisherPlatform"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=b("AdsAPIPublisherPlatform").FACEBOOK;c=b("AdsAPIPublisherPlatform").INSTAGRAM;d=b("AdsAPIPublisherPlatform").AUDIENCE_NETWORK;e=b("AdsAPIPublisherPlatform").MESSENGER;b=b("AdsAPIPublisherPlatform").WHATSAPP;f.facebook=a;f.instagram=c;f.audience_network=d;f.messenger=e;f.whatsapp=b}),null); __d("AdsUtils_Placement_PublisherPlatform.bs",["AdsArray.bs","FBOption.bs","AdsPlacementSpec.bs"],(function(a,b,c,d,e,f){"use strict";function a(a,c){return b("FBOption.bs").$$default(!1,b("FBOption.bs").map(function(a){return b("AdsArray.bs").contains(void 0,c,a)},b("AdsPlacementSpec.bs").getPublisherPlatforms(a)))}f.adsPlacementAPISpecReaderIsActivePublisherPlatform=a}),null); __d("AdsUtils_Placement_Instagram.bs",["AdsArray.bs","FBOption.bs","AdsPlacementSpec.bs","AdsEnum_PublisherPlatform.bs","AdsUtils_Placement_PublisherPlatform.bs"],(function(a,b,c,d,e,f){"use strict";function a(a,c){var d=b("AdsUtils_Placement_PublisherPlatform.bs").adsPlacementAPISpecReaderIsActivePublisherPlatform(a,b("AdsEnum_PublisherPlatform.bs").instagram);a=b("FBOption.bs").$$default(!1,b("FBOption.bs").map(function(a){return b("AdsArray.bs").contains(void 0,c,a)},b("AdsPlacementSpec.bs").getInstagramPositions(a)));if(d)return a;else return!1}f.adsPlacementAPISpecReaderIsActiveInstagramPosition=a}),null); __d("AdsCampaignExplorePositionValidator.bs",["bs_curry","gkx","AdsUVPaths.bs","AdsValidators.bs","AdsCampaignValidator.bs","AdsEnum_InstagramPosition.bs","AdsUtils_Placement_Instagram.bs","AdsPlacementEligibilityInformation.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){return b("AdsPlacementEligibilityInformation.bs").getPlacementSpec(a[7])}function c(a,c){if(b("AdsUtils_Placement_Instagram.bs").adsPlacementAPISpecReaderIsActiveInstagramPosition(c,b("AdsEnum_InstagramPosition.bs").explore)){var d=b("AdsUtils_Placement_Instagram.bs").adsPlacementAPISpecReaderIsActiveInstagramPosition(c,b("AdsEnum_InstagramPosition.bs").explore);c=b("AdsUtils_Placement_Instagram.bs").adsPlacementAPISpecReaderIsActiveInstagramPosition(c,b("AdsEnum_InstagramPosition.bs").stream);var e=b("gkx")("846256");if(!(d&&c)&&!e)return b("bs_curry")._3(a[0],void 0,b("AdsUVPaths.bs").Campaign[1][5],43);else return 0}else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignExplorePositionValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsAccountUtils.bs",["AdsArray.bs","FBString.bs","AdsAdAccount.bs"],(function(a,b,c,d,e,f){"use strict";function g(a,c){if(a!==void 0)return b("AdsArray.bs").contains(b("FBString.bs").equal,c,a);else return!1}function a(a,c){return g(b("AdsAdAccount.bs").getCapabilities(a),c)}f.hasCapabilityFromList=g;f.hasCapability=a}),null); __d("AdsEnum_FacebookPosition.bs",["AdsAPIFacebookPosition"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=b("AdsAPIFacebookPosition").FEED;c=b("AdsAPIFacebookPosition").RHC;d=b("AdsAPIFacebookPosition").INSTANT_ARTICLE;e=b("AdsAPIFacebookPosition").INSTREAM_VIDEO;var g=b("AdsAPIFacebookPosition").GROUPS,h=b("AdsAPIFacebookPosition").SUGGESTED_VIDEO,i=b("AdsAPIFacebookPosition").MARKETPLACE,j=b("AdsAPIFacebookPosition").STORY;b=b("AdsAPIFacebookPosition").SEARCH;f.feed=a;f.rhc=c;f.instant_article=d;f.instream_video=e;f.groups=g;f.suggested_video=h;f.marketplace=i;f.story=j;f.search=b}),null); __d("AdsUtils_Placement_Facebook.bs",["AdsArray.bs","FBOption.bs","AdsPlacementSpec.bs","AdsEnum_PublisherPlatform.bs","AdsUtils_Placement_PublisherPlatform.bs"],(function(a,b,c,d,e,f){"use strict";function a(a,c){var d=b("AdsUtils_Placement_PublisherPlatform.bs").adsPlacementAPISpecReaderIsActivePublisherPlatform(a,b("AdsEnum_PublisherPlatform.bs").facebook);a=b("FBOption.bs").$$default(!1,b("FBOption.bs").map(function(a){return b("AdsArray.bs").contains(void 0,c,a)},b("AdsPlacementSpec.bs").getFacebookPositions(a)));if(d)return a;else return!1}f.adsPlacementAPISpecReaderIsActiveFacebookPosition=a}),null); __d("AdsCampaignFacebookSearchPositionValidator.bs",["bs_curry","AdsUVPaths.bs","AdsAdAccount.bs","bs_js_primitive","AdsValidators.bs","AdsAccountUtils.bs","AdsCampaignValidator.bs","AdsEnum_FacebookPosition.bs","AdsUtils_Placement_Facebook.bs","AdsPlacementEligibilityInformation.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){var c=b("AdsAdAccount.bs").getCapabilities(a[0]);a=b("AdsPlacementEligibilityInformation.bs").getPlacementSpec(a[7]);if(c!==void 0&&a!==void 0)return[c,b("bs_js_primitive").valFromOption(a)]}function c(a,c){if(b("AdsUtils_Placement_Facebook.bs").adsPlacementAPISpecReaderIsActiveFacebookPosition(c[1],b("AdsEnum_FacebookPosition.bs").search)){var d=b("AdsUtils_Placement_Facebook.bs").adsPlacementAPISpecReaderIsActiveFacebookPosition(c[1],b("AdsEnum_FacebookPosition.bs").feed);c=b("AdsAccountUtils.bs").hasCapabilityFromList(c[0],"SKIP_FB_SEARCH_BUNDLE_WITH_FB_FEED_RULE");if(!d&&!c)return b("bs_curry")._3(a[0],void 0,b("AdsUVPaths.bs").Campaign[1][3],42);else return 0}else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignFacebookSearchPositionValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsCampaignFacebookStoryPositionValidator.bs",["bs_curry","AdsUVPaths.bs","AdsAdAccount.bs","bs_js_primitive","AdsValidators.bs","AdsAccountUtils.bs","AdsCampaignGroup.bs","AdsEnum_Objective.bs","AdsCampaignValidator.bs","AdsEnum_FacebookPosition.bs","AdsEnum_InstagramPosition.bs","AdsUtils_Placement_Facebook.bs","AdsUtils_Placement_Instagram.bs","AdsPlacementEligibilityInformation.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){var c=b("AdsAdAccount.bs").getCapabilities(a[0]),d=b("AdsCampaignGroup.bs").getObjective(a[3]);a=b("AdsPlacementEligibilityInformation.bs").getPlacementSpec(a[7]);if(c!==void 0&&d!==void 0&&a!==void 0)return[c,b("bs_js_primitive").valFromOption(d),b("bs_js_primitive").valFromOption(a)]}function c(a,c){__p&&__p();a=a[0];if(b("AdsUtils_Placement_Facebook.bs").adsPlacementAPISpecReaderIsActiveFacebookPosition(c[2],b("AdsEnum_FacebookPosition.bs").story)){var d=b("AdsUtils_Placement_Facebook.bs").adsPlacementAPISpecReaderIsActiveFacebookPosition(c[2],b("AdsEnum_FacebookPosition.bs").feed),e=b("AdsUtils_Placement_Instagram.bs").adsPlacementAPISpecReaderIsActiveInstagramPosition(c[2],b("AdsEnum_InstagramPosition.bs").story),f=b("AdsAccountUtils.bs").hasCapabilityFromList(c[0],"SKIP_FB_STORIES_BUNDLE_WITH_FB_FEED_RULE"),g=b("AdsAccountUtils.bs").hasCapabilityFromList(c[0],"SKIP_FB_STORIES_BUNDLE_WITH_IG_STORIES_RULE");if(c[1]===b("AdsEnum_Objective.bs").product_catalog_sales)if(f||d)return 0;else return b("bs_curry")._3(a,void 0,b("AdsUVPaths.bs").Campaign[1][3],40);else if(f&&g)return 0;else{c=!f&&d;f=!g&&e;if(!c&&!f)return b("bs_curry")._3(a,void 0,b("AdsUVPaths.bs").Campaign[1][3],41);else return 0}}else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignFacebookStoryPositionValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsEnum_BuyingType.bs",["AdsBuyingTypes"],(function(a,b,c,d,e,f){"use strict";a=b("AdsBuyingTypes").AUCTION;c=b("AdsBuyingTypes").FIXED_PRICE;d=b("AdsBuyingTypes").RESERVED;e=b("AdsBuyingTypes").MIXED;f.auction=a;f.fixed_price=c;f.reserved=d;f.mixed=e}),null); __d("AdsFrequencyControlEditorConstants.bs",["AdsFrequencyControlEditorConstants"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=b("AdsFrequencyControlEditorConstants").MIN_INTERVAL_DAYS;c=b("AdsFrequencyControlEditorConstants").MAX_INTERVAL_DAYS;d=b("AdsFrequencyControlEditorConstants").NO_CAP_OPTIMIZATION_GOAL;e=b("AdsFrequencyControlEditorConstants").DEFAULT_INTERVAL_DAYS_FOR_BAO;var g=b("AdsFrequencyControlEditorConstants").DEFAULT_INTERVAL_DAYS_FOR_VV;b=b("AdsFrequencyControlEditorConstants").DEFAULT_INTERVAL;f.minIntervalDays=a;f.maxIntervalDays=c;f.noCapOptimizationGoal=d;f.defaultIntervalDaysForBAO=e;f.defaultIntervalDaysForVV=g;f.defaultInterval=b}),null); __d("FrequencyControlSpecImpl.bs",["bs_js_primitive","AdsDataModelUtils.bs","bs_js_null_undefined"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g={event:null,interval_days:null,max_frequency:null};function a(a){return b("bs_js_primitive").nullable_to_opt(a.event)}function c(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{event:b("bs_js_null_undefined").fromOption(a)})}function d(a){return b("bs_js_primitive").nullable_to_opt(a.interval_days)}function e(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{interval_days:b("bs_js_null_undefined").fromOption(a)})}function h(a){return b("bs_js_primitive").nullable_to_opt(a.max_frequency)}function i(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{max_frequency:b("bs_js_null_undefined").fromOption(a)})}f.empty=g;f.getEvent=a;f.setEvent=c;f.getIntervalDays=d;f.setIntervalDays=e;f.getMaxFrequency=h;f.setMaxFrequency=i}),null); __d("FrequencyControlSpec.bs",["FBOption.bs","bs_js_primitive","FrequencyControlSpecImpl.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("FrequencyControlSpecImpl.bs").getEvent;function a(a,c){return b("FrequencyControlSpecImpl.bs").setEvent(b("bs_js_primitive").some(a),c)}function c(a){return b("FrequencyControlSpecImpl.bs").setEvent(void 0,a)}function d(a,c){a=b("FBOption.bs").map(a,b("FrequencyControlSpecImpl.bs").getEvent(c));return b("FrequencyControlSpecImpl.bs").setEvent(a,c)}var h=b("FrequencyControlSpecImpl.bs").getIntervalDays;function e(a,c){return b("FrequencyControlSpecImpl.bs").setIntervalDays(a,c)}function i(a){return b("FrequencyControlSpecImpl.bs").setIntervalDays(void 0,a)}function j(a,c){a=b("FBOption.bs").map(a,b("FrequencyControlSpecImpl.bs").getIntervalDays(c));return b("FrequencyControlSpecImpl.bs").setIntervalDays(a,c)}var k=b("FrequencyControlSpecImpl.bs").getMaxFrequency;function l(a,c){return b("FrequencyControlSpecImpl.bs").setMaxFrequency(a,c)}function m(a){return b("FrequencyControlSpecImpl.bs").setMaxFrequency(void 0,a)}function n(a,c){a=b("FBOption.bs").map(a,b("FrequencyControlSpecImpl.bs").getMaxFrequency(c));return b("FrequencyControlSpecImpl.bs").setMaxFrequency(a,c)}f.getEvent=g;f.setEvent=a;f.deleteEvent=c;f.updateEvent=d;f.getIntervalDays=h;f.setIntervalDays=e;f.deleteIntervalDays=i;f.updateIntervalDays=j;f.getMaxFrequency=k;f.setMaxFrequency=l;f.deleteMaxFrequency=m;f.updateMaxFrequency=n}),null); __d("AdsFrequencyControlEditorUtils.bs",["AdsArray.bs","bs_js_primitive","FrequencyControlSpec.bs","AdsEnum_OptimizationGoal.bs","AdsFrequencyControlEditorConstants.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){__p&&__p();if(a!==void 0){a=a;var c=b("AdsArray.bs").length(a);if(c===0)return void 0;else{a=b("AdsArray.bs").get(a,c-1|0);if(a!==void 0)return b("FrequencyControlSpec.bs").getMaxFrequency(b("bs_js_primitive").valFromOption(a));else return void 0}}}function c(a){if(a===b("AdsEnum_OptimizationGoal.bs").ad_recall_lift)return b("AdsFrequencyControlEditorConstants.bs").defaultIntervalDaysForBAO;else if(b("AdsArray.bs").contains(void 0,a,b("AdsFrequencyControlEditorConstants.bs").noCapOptimizationGoal))return b("AdsFrequencyControlEditorConstants.bs").defaultIntervalDaysForVV;else return b("AdsFrequencyControlEditorConstants.bs").defaultInterval}f.getUniformMaxFrequency=a;f.getMinimumDefaultInterval=c}),null); __d("AdsPlannerPlanFields",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({AUTHOR_NAME:"author_name",BUSINESS_ID:"business_id",CURRENCY:"currency",DEAL_ID:"deal_id",ID:"id",NAME:"name",PLAN_TYPE:"plan_type",REGULATED_CATEGORY:"regulated_category",TIME_UPDATED:"time_updated",TRP_ACCOUNT_ID:"trp_account_id",TRP_IO_NUMBER:"trp_io_number",TRP_IO_STATUS:"trp_io_status",TRP_IS_PLAN_PURCHASED:"trp_is_plan_purchased"})}),null); __d("AdsPlannerSharingSpecFields",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({ID:"id",ENABLED:"enabled",PLAN:"plan",SHARED_DATA:"shared_data",URL:"url",ALLOW_SAVE_COPY:"allow_save_copy",ALLOW_SHARED_PURCHASE:"allow_shared_purchase"})}),null); __d("AdsPlannerConstants",["ix","fbt","AdsAPIObjectives","AdsEmptyUniformMixedBulkValueTypes","AdsGenericFilterFieldType","AdsObjectivesConfig","AdsPlannerPlanFields","AdsPlannerSharingSpecFields","Timezone","asset","keyMirror"],(function(a,b,c,d,e,f,g,h){"use strict";a=b("keyMirror")({ASSET_SELECTOR_TOOLTIP:null,DRAWER:null,VERSION_PURCHASE_BUTTON:null});c=b("AdsGenericFilterFieldType").NUMBER;d=b("AdsGenericFilterFieldType").NUMBER;f={ACCOUNT_PERMISSION_CHECK_THRESHOLD:50,PAGE_PERMISSION_CHECK_THRESHOLD:50,COL_WIDTHS:{BUDGET:100,COST:50,CPP:76,TRP:48,FREQUENCY:75,REACH:70,IMPRESSION:88,TRP_ON_TARGET_CPM:70,SCHEDULE:110},DEFAULT_MIN_NUM_VERSIONS_PER_PLAN:1,DEFAULT_MAX_NUM_VERSIONS_PER_PLAN:10,LARGE_MAX_NUM_VERSIONS_PER_PLAN:30,DEFAULT_MAX_COMPARABLE_VERSIONS_PER_PLAN:4,DEFAULT_PLAN_NAME:h._("Untitled Plan"),DEFAULT_VERSION_NAME:h._("Untitled Version"),DEFAULT_FILTER_SETTINGS:{timezoneID:b("Timezone").UTC,currency:"USD"},LAST_POINT_INTERPOLATE:{interpolateMode:"last"},PLANNER_PURCHASE_LABEL_TEXT:{PREMIUM_FACEBOOK_INSTREAM_VIDEO_TRP:h._("Purchase on IO"),REACH_AND_FREQUENCY:h._("Reserve for Purchase"),REACH_AND_FREQUENCY_INSERTION_ORDER:h._("Purchase on IO"),REACH_AND_FREQUENCY_INSERTION_ORDER_GENERAL:h._("Purchase on IO"),TRP:h._("Purchase on IO")},PLANNER_PLAN_INFORMATION:h._("Plan Information"),PLANNER_PLAN_INFORMATION_DESCRIPTION:h._("Provide a few details about this plan. You can make changes later."),PLANNER_UPFRONT_DEAL_INFORMATION:h._("Upfront Deal Information"),PLANNER_UPFRONT_DEAL_INFORMATION_DESCRIPTION:h._("Please select an upfront deal to use with this plan, if applicable. Plan inventory will be booked according to the upfront deal's rate card."),PLANNER_PROGRESS_BAR_WIDTH:530,DUPLICATED_NAME_SEPARATOR:" ",DEFAULT_CURRENCY:"USD",EDITOR_SELECTOR_WIDTH:224,EDITOR_SELECTOR_HEIGHT:"tall",EDITOR_SELECTOR_HEIGHT_NORMAL:"normal",HEADER_SELECTOR_WIDTH:200,ADS_PLANNER_RESET_PERIOD_SELECTION:[{value:1,label:h._("1 day"),isCustom:!1},{value:7,label:h._("7 days"),isCustom:!1},{value:14,label:h._("14 days"),isCustom:!1},{value:30,label:h._("30 days"),isCustom:!1},{value:0,label:h._("Custom"),isCustom:!0}],ADS_PLANNER_VALIDATION_ERROR_CODES:b("keyMirror")({DATES_INVALID_DURATION:null,DATES_INVALID_FLEXIBLE_START_TIME:null,DATES_INVALID_FLEXIBLE_END_TIME:null,DATES_INVALID_START_TIME:null,DATES_INVALID_STOP_EARLIER:null,DESTINATION_INVALID_UNSELECTED:null,INSTAGRAM_DESTINATION_INVALID_UNSELECTED:null,INVALID_PLACEMENT:null,INVALID_TARGETING:null}),getFilterIcon:function(a){return a?g("406931"):g("403441")},SUPPORTED_OBJECTIVES:[{key:b("AdsAPIObjectives").BRAND_AWARENESS,name:b("AdsObjectivesConfig").getName(b("AdsAPIObjectives").BRAND_AWARENESS)},{key:b("AdsAPIObjectives").REACH,name:b("AdsObjectivesConfig").getName(b("AdsAPIObjectives").REACH)},{key:b("AdsAPIObjectives").POST_ENGAGEMENT,name:b("AdsObjectivesConfig").getName(b("AdsAPIObjectives").POST_ENGAGEMENT)},{key:b("AdsAPIObjectives").VIDEO_VIEWS,name:b("AdsObjectivesConfig").getName(b("AdsAPIObjectives").VIDEO_VIEWS)},{key:b("AdsAPIObjectives").LINK_CLICKS,name:b("AdsObjectivesConfig").getName(b("AdsAPIObjectives").LINK_CLICKS)},{key:b("AdsAPIObjectives").APP_INSTALLS,name:b("AdsObjectivesConfig").getName(b("AdsAPIObjectives").APP_INSTALLS)},{key:b("AdsAPIObjectives").CONVERSIONS,name:b("AdsObjectivesConfig").getName(b("AdsAPIObjectives").CONVERSIONS)}],SUPPORTED_OBJECTIVES_AUCTION:[{key:b("AdsAPIObjectives").BRAND_AWARENESS,name:b("AdsObjectivesConfig").getName(b("AdsAPIObjectives").BRAND_AWARENESS)},{key:b("AdsAPIObjectives").REACH,name:b("AdsObjectivesConfig").getName(b("AdsAPIObjectives").REACH)},{key:b("AdsAPIObjectives").POST_ENGAGEMENT,name:b("AdsObjectivesConfig").getName(b("AdsAPIObjectives").POST_ENGAGEMENT)},{key:b("AdsAPIObjectives").VIDEO_VIEWS,name:b("AdsObjectivesConfig").getName(b("AdsAPIObjectives").VIDEO_VIEWS)}],SUPPORTED_OBJECTIVES_AUCTION_LIST:[b("AdsAPIObjectives").BRAND_AWARENESS,b("AdsAPIObjectives").REACH,b("AdsAPIObjectives").POST_ENGAGEMENT,b("AdsAPIObjectives").VIDEO_VIEWS],PermissionCheckPositions:a,CAMPAIGN_PLANNER_FILTER_OPTIONS:b("keyMirror")({BUDGET:null,STATUS:null,CPM:null,END_DATE:null,FREQUENCY:null,INSTAGRAM:null,DESTINATION_NAME:null,REACH:null,START_DATE:null,UPFRONT_DEAL:null}),CAMPAIGN_PLANNER_FILTER_FIELD_TYPES:{BUDGET:d,STATUS:b("AdsGenericFilterFieldType").STRING_SET,CPM:d,END_DATE:b("AdsGenericFilterFieldType").DATE_RANGE,FREQUENCY:c,INSTAGRAM:b("AdsGenericFilterFieldType").STRING,DESTINATION_NAME:b("AdsGenericFilterFieldType").STRING,REACH:c,START_DATE:b("AdsGenericFilterFieldType").DATE_RANGE,UPFRONT_DEAL:b("AdsGenericFilterFieldType").STRING},DEFAULT_DATE_FORMAT:"F d, Y",DEFAULT_DATE_FORMAT_SHORT:"M d",DEFAULT_TIME_FORMAT:"g:i A",NOTICE_STAY_TIME:5e3,NOTICE_TYPES:b("keyMirror")({DELETE_PLAN:null,DELETE_PLAN_ERROR:null,DELETE_VERSION:null,DELETE_VERSION_ERROR:null,DUPLICATE_VERSION:null,EMAIL_SENT:null,FAIL:null,SAVED:null,SAVING_PLAN:null,PURCHASE_SUCCESS:null,NONE:null}),THEMES:[{chart:"rgba(61, 106, 214, 1)",label:"rgba(61, 106, 214, 1)",row:"rgba(61, 106, 214, 0.3)",editor:"rgba(61, 106, 214, 0.1)"},{chart:"rgba(19, 189, 166, 1)",label:"rgba(19, 189, 166, 1)",row:"rgba(19, 189, 166, 0.3)",editor:"rgba(19, 189, 166, 0.1)"},{chart:"rgba(144, 90, 199, 1)",label:"rgba(144, 90, 199, 1)",row:"rgba(144, 90, 199, 0.3)",editor:"rgba(144, 90, 199, 0.09)"},{chart:"rgba(255, 128, 81, 1)",label:"rgba(255, 128, 81, 1)",row:"rgba(255, 128, 81, 0.3)",editor:"rgba(255, 128, 81, 0.09)"},{chart:"rgba(172, 40, 136, 1)",label:"rgba(172, 40, 136, 1)",row:"rgba(172, 40, 136, 0.3)",editor:"rgba(172, 40, 136, 0.09)"},{chart:"rgba(255, 204, 0, 1)",label:"rgba(255, 204, 0, 1)",row:"rgba(255, 204, 0, 0.3)",editor:"rgba(255, 204, 0, 0.09)"},{chart:"rgba(40, 135, 230, 1)",label:"rgba(40, 135, 230, 1)",row:"rgba(40, 135, 230, 0.3)",editor:"rgba(40, 135, 230, 0.09)"},{chart:"rgba(195, 115, 0, 1)",label:"rgba(195, 115, 0, 1)",row:"rgba(195, 115, 0, 0.3)",editor:"rgba(195, 115, 0, 0.09)"},{chart:"rgba(9, 154, 50, 1)",label:"rgba(9, 154, 50, 1)",row:"rgba(9, 154, 50, 0.3)",editor:"rgba(9, 154, 50, 0.09)"},{chart:"rgba(160, 0, 36, 1)",label:"rgba(160, 0, 36, 1)",row:"rgba(239, 141, 155, 1)",editor:"rgba(248, 200, 206, 1)"}],DRAWER_CONTENT_TYPES:b("keyMirror")({CONTENT_PACKAGING:null,CONTENT_AND_PUBLISHER_EXCLUSION:null,OTHER_OPTIONS:null,READ_ONLY_TARGETING:null,SCHEDULE:null,TARGETING:null}),PLAN_FIELDS:Object.values(b("AdsPlannerPlanFields")),PLAN_NAME_MAX_LENGTH:34,PLAN_CREATION_DIALOG_WIDTH:788,PLAN_CREATION_DIALOG_WIDTH_DETAILS:660,PLAN_CREATION_RF_PLAN_ICON:"/images/social_campaign_creation_icon.png",PLAN_CREATION_TRP_PLAN_ICON:"/images/trp_campaign_creation_icon.png",SHARING_EMAIL_DIALOG_FIXED_TOP_POSITION:120,SHARING_EMAIL_DIALOG_WIDTH:1040,SHARING_LINK_DIALOG_FIXED_TOP_POSITION:160,SHARING_LINK_DIALOG_WIDTH:304,SHARING_SPEC_FIELDS:Object.values(b("AdsPlannerSharingSpecFields")),STATUS:b("keyMirror")({AUDIENCE_TOO_SMALL:null,AVAILABLE:null,DATE_IN_PAST:null,ERROR_CANT_RETRY:null,ERROR_RETRY:null,PREDICTION_STALE:null,PURCHASED:null,RESERVED:null,UPDATING:null}),TRP_PURCHASE_DIALOG_WIDTH:750,TRP_PLAN_OBJECTIVE_ICON_URL:g("406687"),TRP_PLAN_OBJECTIVE_NAME:b("AdsObjectivesConfig").getName(b("AdsAPIObjectives").VIDEO_VIEWS),DEFAULT_OBJECTIVE:b("AdsAPIObjectives").BRAND_AWARENESS,DEFAULT_IO_OBJECTIVE:b("AdsAPIObjectives").VIDEO_VIEWS,DEFAULT_VIDEO_PLACEMENTS_OBJECTIVE:b("AdsAPIObjectives").VIDEO_VIEWS,DEFAULT_INITIAL_REACH:4e7,SYNC_DELAY:1e3,AD_ACCOUNT_FIELDS:["account_id","capabilities","currency","name","rf_spec","timezone_id"],AD_ACCOUNT_FIELDS_CONCISE:["account_id","currency","name","timezone_id"],ALL_PLACEMENTS_PLAN_TYPES:["REACH_AND_FREQUENCY_INSERTION_ORDER_GENERAL","TRP"],INSTREAM_PLAN_TYPES:["REACH_AND_FREQUENCY_INSERTION_ORDER","PREMIUM_FACEBOOK_INSTREAM_VIDEO_TRP"],PLANNER_BUYING_TYPE_TEXT:{RESERVED:h._("Reach and Frequency"),AUCTION:h._("Auction"),FIXED_PRICE:"",MIXED:""},PLANNER_BUYING_TYPE_DESCRIPTION:{RESERVED:h._("See predictable reach and results with a fixed price we expect from Reach and Frequency buying."),AUCTION:h._("See a range of reach and results we expect from Auction buying."),FIXED_PRICE:"",MIXED:""},PLANNER_PLAN_TYPE_DISPLAY_NAME:{REACH_AND_FREQUENCY:h._("Facebook (Self Serve)"),REACH_AND_FREQUENCY_INSERTION_ORDER_GENERAL:h._("Facebook (IO)"),TRP:h._("TRP (IO)"),REACH_AND_FREQUENCY_INSERTION_ORDER:h._("Facebook In-Stream Reserve (IO)"),PREMIUM_FACEBOOK_INSTREAM_VIDEO_TRP:h._("TRP In-Stream Reserve (IO)")},OFFSET_MEGA_MENU_HEIGHT:44,FB_BULK_SCHEMA:{destinationID:b("AdsEmptyUniformMixedBulkValueTypes"),isAppObjective:b("AdsEmptyUniformMixedBulkValueTypes")},FB_IS_APPOBJECTIVE_BULK_SCHEMA:b("AdsEmptyUniformMixedBulkValueTypes"),INSTAGRAM_BULK_SCHEMA:b("AdsEmptyUniformMixedBulkValueTypes"),FB_BULK_SELECTION:b("keyMirror")({APP:null,MIX_APP:null,MIX_PAGE_APP:null,MIX_PAGE:null,NO_SELECTION:null,PAGE:null}),INSTAGRAM_BULK_SELECTION:b("keyMirror")({INSTAGRAM:null,MIX_INSTAGRAM:null,NO_SELECTION:null}),PURCHASABLE_ACCOUNT:{getTooltip:function(){return null},isPurchasable:!0}};e.exports=f}),null); __d("AdsAppFluxUtils",["FBLogger"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=":";a={getFluxKey:function(a,b){return a+g+b},parseKey:function(a){var c=a.split(g);if(c.length===2)return{accountID:c[0],appID:c[1]};else{b("FBLogger")("ads").mustfix("Invalid app flux key: %s",a);return null}}};e.exports=a}),null); __d("AdsPromotableApplicationListBatchLoadErrorDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"PROMOTABLE_APPLICATION.LIST.BATCH_LOAD_ERROR");e.exports=a}),null); __d("AdsPromotableApplicationListBatchLoadedDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"PROMOTABLE_APPLICATION.LIST.BATCH_LOADED");e.exports=a}),null); __d("AdsPromotableApplicationListPartialLoadDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"PROMOTABLE_APPLICATION.LIST.PARTIAL_LOAD");e.exports=a}),null); __d("AdsPromotableApplicationLoadErrorDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"PROMOTABLE_APPLICATION.LOAD_ERROR");e.exports=a}),null); __d("AdsPromotableApplicationLoadedDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"PROMOTABLE_APPLICATION.LOADED");e.exports=a}),null); __d("AdsPromotableAppListDataManager",["AdsBaseListDataManager","AdsGraphAPI","AdsPromotableApplicationListBatchLoadedDataAction","AdsPromotableApplicationListBatchLoadErrorDataAction","AdsPromotableApplicationListPartialLoadDataAction","AdsPromotableApplicationLoadedDataAction","AdsPromotableApplicationLoadErrorDataAction","GraphAPIPaging","promiseDone"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=["advertisable_app_events","app_install_tracked","category","cpa_access","icon_url","id","is_first_party_app","has_messenger_product","logo_url","name","object_store_urls","picture","supported_platforms","website_url"];a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.loadFor=function(a){var c=this;b("promiseDone")(b("AdsGraphAPI").get(e.id).adaccount(a).edge("advertisable_applications").batched().get({fields:g}).then(b("GraphAPIPaging").eachPage(function(c){return b("AdsPromotableApplicationListPartialLoadDataAction").dispatch({accountID:a,promotableApplications:c.data},{line:"66",module:"AdsPromotableAppListDataManager.js"})})),function(b){return c.__handleSuccess(["load"],a,null,b)},function(b){return c.__handleError(["load"],a,null,b)})};d.loadIDsFor=function(a,c){var d=this;c.forEach(function(c){b("promiseDone")(b("AdsGraphAPI").get(e.id).adaccount(a).edge("advertisable_applications").batched().get({app_id:c,fields:g}),function(b){return!b.data||!b.data[0]?d.__onObjectLoadError(a,c,new Error("App is currently unavailable for viewer")):d.__onObjectLoaded(a,b.data[0])},function(b){return d.__onObjectLoadError(a,c,b)})})};d.__onObjectLoaded=function(a,c){b("AdsPromotableApplicationLoadedDataAction").dispatch({accountID:a,promotableApplication:c},{line:"101",module:"AdsPromotableAppListDataManager.js"})};d.__onObjectLoadError=function(a,c,d){b("AdsPromotableApplicationLoadErrorDataAction").dispatch({accountID:a,id:c,error:d},{line:"108",module:"AdsPromotableAppListDataManager.js"})};d.__onBatchLoaded=function(a){b("AdsPromotableApplicationListBatchLoadedDataAction").dispatch({responses:a},{line:"116",module:"AdsPromotableAppListDataManager.js"})};d.__onBatchLoadError=function(a){b("AdsPromotableApplicationListBatchLoadErrorDataAction").dispatch({responses:a},{line:"120",module:"AdsPromotableAppListDataManager.js"})};return c}(b("AdsBaseListDataManager"));e.exports=new a()}),null); __d("AdsPromotableAppDataManager",["AdsAppFluxUtils","AdsBaseDataManager","AdsPromotableAppListDataManager","FBLogger"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.loadAll=function(a){var b=this;if(a.length===0)return;a.forEach(function(a){return b.load(a)})};d.load=function(a){var c=b("AdsAppFluxUtils").parseKey(a);if(!c){b("FBLogger")("ads").mustfix("Failed to parse fluxKey: %s",a);return}a=c.accountID;b("AdsPromotableAppListDataManager").loadFor(a)};return c}(b("AdsBaseDataManager"));e.exports=new a()}),null); __d("AdsPromotableApplicationListBatchLoadErrorDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"PROMOTABLE_APPLICATION.LIST.BATCH_LOAD_ERROR"}}),null); __d("AdsPromotableApplicationListBatchLoadedDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"PROMOTABLE_APPLICATION.LIST.BATCH_LOADED"}}),null); __d("AdsPromotableApplicationListLoadErrorDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"PROMOTABLE_APPLICATION.LIST.LOAD_ERROR"}}),null); __d("AdsPromotableApplicationListLoadedDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"PROMOTABLE_APPLICATION.LIST.LOADED"}}),null); __d("AdsPromotableApplicationListPartialLoadDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"PROMOTABLE_APPLICATION.LIST.PARTIAL_LOAD"}}),null); __d("AdsPromotableApplicationLoadErrorDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"PROMOTABLE_APPLICATION.LOAD_ERROR"}}),null); __d("AdsPromotableApplicationLoadedDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"PROMOTABLE_APPLICATION.LOADED"}}),null); __d("AdsAccountPromotableAppStore",["invariant","AdsAppFluxUtils","AdsBaseDataStore","AdsLoadState_LEGACY","AdsPromotableAppDataManager","AdsPromotableApplicationListBatchLoadedDataActionFlux","AdsPromotableApplicationListBatchLoadErrorDataActionFlux","AdsPromotableApplicationListLoadedDataActionFlux","AdsPromotableApplicationListLoadErrorDataActionFlux","AdsPromotableApplicationListPartialLoadDataActionFlux","AdsPromotableApplicationLoadedDataActionFlux","AdsPromotableApplicationLoadErrorDataActionFlux","FBLogger","adsCreateStoreThunkSelector"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;g0&&b("AdsConnectionObjectDataManager").loadAllFor(a,d);return this.getAllCached(c)};d.__getActionTypes=function(){return[b("AdsConnectionObjectBatchLoadErrorDataActionFlux").actionType,b("AdsConnectionObjectBatchLoadedDataActionFlux").actionType]};d.__onDispatch=function(a){a=a.action;switch(a.type){case b("AdsConnectionObjectBatchLoadedDataActionFlux").actionType:this.__handleLoadedData(a.connectionObjects);break;case b("AdsConnectionObjectBatchLoadErrorDataActionFlux").actionType:this.__handleData(a.errors,b("AdsLoadState_LEGACY").ERROR);break}};d.__computeStorageKey=function(a,b){return a+"_"+b};d.__handleLoadedData=function(a){var c=this,d=new Map(),e=new Map();a.forEach(function(a,b){c.__filterConnectionObject(a)?d.set(b,a):e.set(b,a)});this.__handleData(d,b("AdsLoadState_LEGACY").LOADED);this.__handleData(e,b("AdsLoadState_LEGACY").ERROR)};d.__filterConnectionObject=function(a){return b("abstractMethod")("AdsBaseConnectionObjectStore","__filterConnectionObject")};return c}(b("AdsBaseDataStore"));e.exports=a}),null); __d("AdsPromotableAppStore",["AdsAccountPromotableAppStore","AdsBaseConnectionObjectStore","AdsConnectionObjectUtils","AdsLoadState_LEGACY","AdsPromotableApplicationListBatchLoadedDataActionFlux","AdsPromotableApplicationListLoadedDataActionFlux","AdsPromotableApplicationLoadedDataActionFlux","AdsPromotableApplicationLoadErrorDataActionFlux","AdsPromotableAppListDataManager","adsCreateStoreThunkSelector"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){var c;c=a.call(this)||this;c.getForSelector=b("adsCreateStoreThunkSelector")(babelHelpers.assertThisInitialized(c),c.getFor.bind(babelHelpers.assertThisInitialized(c)));c.getAllForSelector=b("adsCreateStoreThunkSelector")(babelHelpers.assertThisInitialized(c),c.getAllFor.bind(babelHelpers.assertThisInitialized(c)));c.getAllCachedForSelector=b("adsCreateStoreThunkSelector")(babelHelpers.assertThisInitialized(c),c.getAllCachedFor.bind(babelHelpers.assertThisInitialized(c)));c.$AdsPromotableAppStoreClass1=new Map();return c}var d=c.prototype;d.getFor=function(a,b){return this.getAllFor(a,[b]).get(this.__computeStorageKey(a,b))};d.getAllFor=function(c,d){var e=this;d=d.map(function(a){return e.__computeStorageKey(c,a)});var f=[];this.__updateLoading(d).forEach(function(a){f.push(a)});f.length>0&&(!this.$AdsPromotableAppStoreClass1.has(c)?(this.$AdsPromotableAppStoreClass1.set(c,f),b("AdsPromotableAppListDataManager").loadFor(c)):b("AdsPromotableAppListDataManager").loadIDsFor(c,f.map(function(a){return a.split("_")[1]})));return a.prototype.getAllCached.call(this,d)};d.getAllCachedFor=function(a,b){var c=this;return this.getAllCached(b.map(function(b){return c.__computeStorageKey(a,b)}))};d.__getActionTypes=function(){var c;return[].concat((c=a.prototype.__getActionTypes.call(this))!=null?c:[],[b("AdsPromotableApplicationListBatchLoadedDataActionFlux").actionType,b("AdsPromotableApplicationListLoadedDataActionFlux").actionType,b("AdsPromotableApplicationLoadErrorDataActionFlux").actionType,b("AdsPromotableApplicationLoadedDataActionFlux").actionType])};d.__getDependencyStores=function(){var c;return[].concat((c=a.prototype.__getDependencyStores.call(this))!=null?c:[],[b("AdsAccountPromotableAppStore")])};d.__onDispatch=function(a){__p&&__p();var c=this;a=a.action;var d=new Map();this.getDispatcher().waitFor(this.getDependencyDispatchTokens());switch(a.actionType){case b("AdsPromotableApplicationListLoadedDataActionFlux").actionType:var e=a.accountID,f=a.promotableApplications;f.forEach(function(a){var b=c.__computeStorageKey(e,a.id);d.set(b,a)});this.__handleData(d,b("AdsLoadState_LEGACY").LOADED);this.__getAllForMissingKeys(e,d);break;case b("AdsPromotableApplicationListBatchLoadedDataActionFlux").actionType:a.responses.forEach(function(a,e){a.data.forEach(function(a){var b=c.__computeStorageKey(e,a.id);d.set(b,a)}),c.__handleData(d,b("AdsLoadState_LEGACY").LOADED),c.__getAllForMissingKeys(e,d)});break;case b("AdsPromotableApplicationLoadedDataActionFlux").actionType:f=a.accountID;var g=a.promotableApplication;d.set(this.__computeStorageKey(f,g.id),g);this.__handleData(d,b("AdsLoadState_LEGACY").LOADED);break;case b("AdsPromotableApplicationLoadErrorDataActionFlux").actionType:f=a.accountID;g=a.error;a=a.id;d.set(this.__computeStorageKey(f,a),g);this.__handleData(d,b("AdsLoadState_LEGACY").ERROR);break}};d.__getAllForMissingKeys=function(a,b){var c=this,d=this.$AdsPromotableAppStoreClass1.get(a)||[];d=d.filter(function(a){return!b.has(a)});d.forEach(function(a){return c.__invalidate(a)});this.$AdsPromotableAppStoreClass1.set(a,Array.from(b.keys()));this.getAllFor(a,d.map(function(a){return a.split("_")[1]}))};d.__filterConnectionObject=function(a){return b("AdsConnectionObjectUtils").isApp(a)};return c}(b("AdsBaseConnectionObjectStore"));c=new a();e.exports=c}),null); __d("AdsPromotablePageBatchLoadErrorDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"PROMOTABLE_PAGE.BATCH_LOAD_ERROR"}}),null); __d("AdsPromotablePageBatchLoadedDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"PROMOTABLE_PAGE.BATCH_LOADED"}}),null); __d("AdsDataManagerApiUtils",[],(function(a,b,c,d,e,f){"use strict";function a(a,b,c){var d=new Map();b.filter(function(b){return a[b]==null}).forEach(function(a){d.set(a,c||new Error("Object missing"))});return d}e.exports={extractErrors:a}}),null); __d("AdsPromotablePageBatchLoadErrorDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"PROMOTABLE_PAGE.BATCH_LOAD_ERROR");e.exports=a}),null); __d("AdsPromotablePageBatchLoadedDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"PROMOTABLE_PAGE.BATCH_LOADED");e.exports=a}),null); __d("AdsPromotablePageListLoadErrorDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"PROMOTABLE_PAGE.LIST.LOAD_ERROR");e.exports=a}),null); __d("AdsPromotablePageDataManager",["AdsBaseDataManager","AdsDataManagerApiUtils","AdsGraphAPI","AdsPageFields","AdsPromotablePageBatchLoadedDataAction","AdsPromotablePageBatchLoadErrorDataAction","AdsPromotablePageListLoadErrorDataAction","promiseDone"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function g(a){var b={},c={};Object.entries(a).forEach(function(a){var d=a[0];a=a[1];a&&a.is_published?b[d]=a:c[d]=a});return[b,c]}a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.loadAllFor=function(a,c){__p&&__p();var d=this;b("promiseDone")(b("AdsGraphAPI").get(e.id).objects("promotable_pages",c).get({fields:b("AdsPageFields").forCurrentUser()}),function(e){var f=g(e),h=f[0];f=f[1];d.__handleSuccess(["load"],a,null,h);var i=b("AdsDataManagerApiUtils").extractErrors(e,c);Object.entries(f).forEach(function(a){a=a[0];i.set(a,new Error("Page unpublished"))});b("AdsPromotablePageBatchLoadErrorDataAction").dispatch({accountID:a,errors:i},{line:"54",module:"AdsPromotablePageDataManager.js"})},function(d){return b("AdsPromotablePageBatchLoadErrorDataAction").dispatch({accountID:a,errors:b("AdsDataManagerApiUtils").extractErrors({},c,d)},{line:"60",module:"AdsPromotablePageDataManager.js"})})};d.loadFor=function(a,b){this.loadAllFor(a,[b])};d.__onBatchLoaded=function(a){a.forEach(function(a,c){a=new Map(Object.entries(a));b("AdsPromotablePageBatchLoadedDataAction").dispatch({accountID:c,promotablePages:a},{line:"74",module:"AdsPromotablePageDataManager.js"})})};d.__onBatchLoadError=function(a){b("AdsPromotablePageListLoadErrorDataAction").dispatch({errors:a},{line:"82",module:"AdsPromotablePageDataManager.js"})};return c}(b("AdsBaseDataManager"));e.exports=new a()}),null); __d("AdsPromotablePageStore",["AdsBaseConnectionObjectStore","AdsConnectionObjectUtils","AdsLoadState_LEGACY","AdsPromotablePageBatchLoadedDataActionFlux","AdsPromotablePageBatchLoadErrorDataActionFlux","AdsPromotablePageDataManager","AdsPromotablePageListBatchLoadedDataActionFlux","AdsPromotablePageListBatchLoadErrorDataActionFlux","AdsPromotablePageListLoadedDataActionFlux","AdsPromotablePageListLoadErrorDataActionFlux","AdsPromotablePageListPartialLoadDataActionFlux","AdsWhatsAppConnectAccountDialogVerifyCodeSuccessActionFlux"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getFor=function(a,b){return this.getAllFor(a,[b]).get(this.__computeStorageKey(a,b))};d.getAllFor=function(c,d){var e=this,f=[];d.forEach(function(a){f.push(e.__computeStorageKey(c,a))});var g=[];this.__updateLoading(f).forEach(function(a){g.push(a.split("_")[1])});g.length>0&&b("AdsPromotablePageDataManager").loadAllFor(c,g);return a.prototype.getAllCached.call(this,f)};d.getAllCachedFor=function(a,b){var c=this;return this.getAllCached(b.map(function(b){return c.__computeStorageKey(a,b)}))};d.__getActionTypes=function(){var c;return[].concat((c=a.prototype.__getActionTypes.call(this))!=null?c:[],[b("AdsPromotablePageBatchLoadErrorDataActionFlux").actionType,b("AdsPromotablePageBatchLoadedDataActionFlux").actionType,b("AdsPromotablePageListBatchLoadErrorDataActionFlux").actionType,b("AdsPromotablePageListBatchLoadedDataActionFlux").actionType,b("AdsPromotablePageListLoadErrorDataActionFlux").actionType,b("AdsPromotablePageListLoadedDataActionFlux").actionType,b("AdsPromotablePageListPartialLoadDataActionFlux").actionType,b("AdsWhatsAppConnectAccountDialogVerifyCodeSuccessActionFlux").actionType])};d.__onDispatch=function(a){__p&&__p();var c=this;a=a.action;switch(a.type){case b("AdsPromotablePageBatchLoadedDataActionFlux").actionType:case b("AdsPromotablePageListLoadedDataActionFlux").actionType:this.__handlePages(a.promotablePages,a.accountID);break;case b("AdsPromotablePageListBatchLoadedDataActionFlux").actionType:a.responses.forEach(function(a,b){c.__handlePages(a.data,b)});break;case b("AdsPromotablePageListPartialLoadDataActionFlux").actionType:this.__handlePages(a.promotablePages,a.accountID);break;case b("AdsPromotablePageListBatchLoadErrorDataActionFlux").actionType:case b("AdsPromotablePageListLoadErrorDataActionFlux").actionType:this.__handleData(a.errors,b("AdsLoadState_LEGACY").ERROR);break;case b("AdsPromotablePageBatchLoadErrorDataActionFlux").actionType:this.__handlePageErrors(a.errors,a.accountID);break;case b("AdsWhatsAppConnectAccountDialogVerifyCodeSuccessActionFlux").actionType:this.$AdsPromotablePageStoreClass1(a.pageID,a.accountID);break}};d.__handlePageErrors=function(a,c){var d=this,e=new Map();a!=null&&a.forEach(function(a,b){b=d.__computeStorageKey(c,b);e.set(b,a)});this.__handleData(e,b("AdsLoadState_LEGACY").ERROR)};d.__handlePages=function(a,c){var d=this,e=new Map();a.forEach(function(a){var b=d.__computeStorageKey(c,a.id);e.set(b,a)});this.__handleData(e,b("AdsLoadState_LEGACY").LOADED)};d.__filterConnectionObject=function(a){return b("AdsConnectionObjectUtils").isPage(a)};d.$AdsPromotablePageStoreClass1=function(a,c){b("AdsPromotablePageDataManager").loadFor(c,a)};return c}(b("AdsBaseConnectionObjectStore"));c=new a();e.exports=c}),null); __d("AdsReachFrequencyNoPredictionPauseTimeMinutes",[],(function(a,b,c,d,e,f){a=30;e.exports=a}),null); __d("AdsTargetingCountryUtils",["AdsCreateMultiCountryLookalikeConfig","FBLogger","LocationConstants","StrSet"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g={};b("AdsCreateMultiCountryLookalikeConfig").countryGroupsMetadata.forEach(function(a){g[a.id]=a});function h(a){!a.country&&!a.country_code&&b("FBLogger")("ads").mustfix("The geo location objects you passed in does not contain country or country_code field. You are using getAdsTargetingUniqueCountries the wrong way. Please fix ASAP")}function a(a,c){__p&&__p();c===void 0&&(c=!0);var d=[];b("LocationConstants").locationTypes.forEach(function(e){__p&&__p();var f=a[e]||{},i;e===b("LocationConstants").COUNTRIES?Object.keys(f).forEach(function(a){i=typeof f[a]==="string"?f[a]:a,d.push(i)}):e===b("LocationConstants").COUNTRY_GROUPS?Object.keys(f).forEach(function(a){a=f[a].country_codes||[];d=d.concat(a)}):e===b("LocationConstants").CUSTOM_LOCATIONS?Object.keys(f).forEach(function(a){__p&&__p();a=f[a];if(a.custom_type===b("LocationConstants").CUSTOM_TYPE_MULTI_CITY)if(a.country_group){var e=g[a.country_group]?g[a.country_group].countries:[];d=d.concat(e)}else a.country_code&&d.push(a.country_code);else{c&&h(a);e=a.country||a.country_code;e&&d.push(e)}}):Object.keys(f).forEach(function(a){a=f[a];c&&h(a);a=a.country||a.country_code;a&&d.push(a)})});var e=new(b("StrSet"))(d);return e.toArray().sort()}c={getUniqueCountries:a};e.exports=c}),null); __d("AdsReachFrequencyUtils",["cx","fbt","invariant","AdsAccountUtils","AdsAPICampaignPaths","AdsAPIObjectives","AdsAppUtils","AdsBulkValueUtils","AdsBuyingTypes","AdsLoadStateUtils_LEGACY","AdsPageTypes","AdsPlannerConstants","AdsPromotableAppStore","AdsPromotablePageStore","AdsReachFrequencyConstants","AdsReachFrequencyContinentMap","AdsReachFrequencyFlowActions","AdsReachFrequencyFlowSetIsEditModeAction","AdsReachFrequencyNoPredictionPauseTimeMinutes","AdsRunStatusType","AdsTargetingCountryUtils","Currency","DateConsts","DateTime","Link.react","NumberFormatConfig","ReachFrequencyPredictionModes","React","ads-app-platforms","ads-lib-formatters","getBulkByPath","getByPath","immutable","nullthrows","unixTimestampFromDate"],(function(a,b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j=b("AdsPlannerConstants").DUPLICATED_NAME_SEPARATOR,k=b("NumberFormatConfig").decimalSeparator,l=b("NumberFormatConfig").numberDelimiter,m=b("immutable").Set,n=b("AdsReachFrequencyConstants").MAX_DAYS_BETWEEN_UNPAUSE_AND_CAMPAIGN_END,o=b("AdsReachFrequencyConstants").MIN_HOURS_BEFORE_CAMPAIGN_END,p=b("AdsReachFrequencyConstants").MIN_REACH,q=b("ads-lib-formatters").createIntlNumberFormatter(0),r=b("AdsReachFrequencyConstants").ObjectiveTypes,s=m([b("AdsPageTypes").FEED,b("AdsReachFrequencyConstants").MOBILE_ONLY_PAGE_TYPE,b("AdsPageTypes").DESKTOP_FEED]),t="DUPLICATION",u=b("DateConsts").SEC_PER_DAY*b("DateConsts").MS_PER_SEC,v=1e3,w=1e3,x=1e3,y=5e7,z=1e6,A=b("DateConsts").SEC_PER_HOUR+b("DateConsts").SEC_PER_MIN,B=A*b("DateConsts").MS_PER_SEC;A={MAX_FREQUENCY:1e5,REACH:1e9,BUDGET:1e8,FREQ_CAP:4,CAMPAIGN_START_TIME:"12:00 am",CAMPAIGN_END_TIME:"11:59 pm",MAX_BID:100,DURATION_DAYS:7,RESET_PERIOD:30*24};var C=h._("Reach and frequency ad sets purchased with an insertion order can't be edited."),D=h._("Reach and frequency ad sets that are one day long can't be edited."),E=h._("Can only create and modify TRP campaigns using TRP buying tool"),F=h._("Cannot edit campaign because it has already ended");function a(a){if(a===r.budget)return b("ReachFrequencyPredictionModes").BUDGET.value;else if(a===r.reach)return b("ReachFrequencyPredictionModes").REACH.value;else if(a===r.predefined)return b("ReachFrequencyPredictionModes").PREDEFINED.value;else i(0,3289)}function c(a){switch(a){case r.budget:return b("ReachFrequencyPredictionModes").BUDGET.name;case r.reach:return b("ReachFrequencyPredictionModes").REACH.name;case r.predefined:return b("ReachFrequencyPredictionModes").PREDEFINED.name;default:i(0,3289)}}function d(){return b("React").createElement("div",{className:"_2zi5"},b("React").createElement("div",{className:"_2zi6"},h._("Ad Set Can't Be Edited")),b("React").createElement("div",{className:"_2zi7"},h._("When an ad set is expected to under-deliver on its prediction, changes can't be made to its budget or schedule. If you need to make changes, delete or turn off this ad set and create a new one. You can also change your ad creative to try to improve performance.")))}function f(){return b("React").createElement("div",{className:"_2zi5"},b("React").createElement("div",{className:"_2zi6"},h._("New Prediction Needed")),b("React").createElement("div",{className:"_2zi7"},h._({"*":"This ad set has been turned off for more than {number} minutes and won't get its predicted results. Update the ad set to reactivate it. {help_link}","_1":"This ad set has been turned off for more than 1 minute and won't get its predicted results. Update the ad set to reactivate it. {help_link}"},[h._plural(b("AdsReachFrequencyNoPredictionPauseTimeMinutes"),"number"),h._param("help_link",b("React").createElement(b("Link.react"),{href:"https://www.facebook.com/business/help/1880284122259793",target:"_blank"},h._("Learn more.")))])))}function G(a,c,d){var e=Date.now(),f=b("AdsBulkValueUtils").getUniformValueOrDefault(b("getBulkByPath")(c,b("AdsAPICampaignPaths").START_TIME));c=b("AdsBulkValueUtils").getUniformValueOrDefault(b("getBulkByPath")(c,b("AdsAPICampaignPaths").END_TIME));f=b("unixTimestampFromDate")(f)*b("DateConsts").MS_PER_SECe;e=f&&c&&!a;c=!(a||e||!f)||!!(d&&d.effective_status===b("AdsRunStatusType").ARCHIVED);return{isMidCampaignEdit:e,immutableCampaign:c}}function g(a,c){__p&&__p();var d=null;if(a)for(var e=0;e0){var d=b.length-1;while(d>0){if(b[d-1]===j)break;d--}var e=b.slice(d,b.length);!isNaN(e)&&parseInt(e,10)>1&&(c=b.slice(0,d-1))}e=c;b=2;while(!0){if(!a.has(e))break;e=c+j+b.toString();b++}return e}function L(a){if(a.length>=255)return!1;var b=/\S/,c=/[|\"^~><\\]/;return!c.test(a)&&b.test(a)}function M(a,c){var d=b("Currency").getSymbol(a),e=b("Currency").getOffset(a)||100;return d+P(c/e,N(a,c/e))}function N(a,c){return c>=1e3?2:Math.round(Math.log10(b("Currency").getOffset(a)))}function O(a,c,d,e){d===void 0&&(d=1);e===void 0&&(e=!0);if(c===0||Math.abs(a)>Math.abs(c)&&e)return"-";e=b("ads-lib-formatters").formatNumber(a/c*100,d,l,k);return parseInt(e,10)===0?"< 1%":e+"%"}function P(a,b){__p&&__p();if(a>=1e9){a/=1e9;return Number(a).toFixed(b!=null?b:1)+"B"}if(a>=1e6){a/=1e6;return Number(a).toFixed(b!=null?b:2)+"M"}if(a>=1e3){a/=1e3;return Number(a).toFixed(b!=null?b:0)+"K"}return q(a)}function Q(a){return a.buying_type===b("AdsBuyingTypes").RESERVED}function R(a,b){return b.toLowerCase().indexOf(a.toLowerCase())!=-1}function S(a,b){if(a&&b)return Math.floor((b-a+B)/u);else return 0}function T(a){if(a>=y)return Math.ceil(a/z)*z;else if(a>=w)return Math.ceil(a/x)*x;return a}function U(a){return a.getHours()===0&&a.getMinutes()===0}function V(a,c){a=a.startOfDay();c=U(c)?c:c.addDays(1).startOfDay();return Math.floor((a.secondsUntil(c)*b("DateConsts").MS_PER_SEC+B)/u)}function W(a,b){return a.getEquivalentInUTC().format(b)}function X(a){a=b("AdsAppUtils").getMobileAppStoreNameFromUrl(a);return b("ads-app-platforms").getStoreName(a)}function Y(a,c,d){if(!c)return null;d=b("AdsAppUtils").isAppObjective(d)?b("AdsPromotableAppStore"):b("AdsPromotablePageStore");d=d.getFor(a,c);if(b("AdsLoadStateUtils_LEGACY").isLoaded(d))return d.name;else return null}function aa(a,b){return a*v/b}function ba(a,b){return b>0?a/b:0}function Z(a){return b("AdsReachFrequencyConstants").INSTAGRAM_SUPPORTED_OBJECTIVES.has(a)}function ca(a){return!b("AdsAppUtils").isAppObjective(a)&&Z(a)}function da(a){if(!a||a.length===0)return!0;if(a.length!==1||a[0].start_minute!==0||a[0].end_minute!==1440)return!1;return a[0].days.length!==7?!1:!0}function ea(a,c,d,e){__p&&__p();var f={disabledReason:null,isEditDisabled:!1};if(a.grp_ratio&&a.grp_ratio<1)return{disabledReason:E,isEditDisabled:!0};if(d){d=b("AdsAccountUtils").hasCapability(c,"CAN_ONLY_USE_RF_IO_BUYING_TYPE");if(d)return{disabledReason:C,isEditDisabled:!0};d=c.timezone_id;c=new(b("DateTime"))(a.campaign_time_start,d);a=new(b("DateTime"))(a.campaign_time_stop,d);d=V(c,a);if(d<=1)return{disabledReason:D,isEditDisabled:!0}}return e?{disabledReason:F,isEditDisabled:!0}:f}function fa(a,c){c=b("DateTime").now(Number(c)).getUnixTimestampSeconds();return a.getUnixTimestampSeconds()-c<=o*b("DateConsts").SEC_PER_HOUR}function $(a,c){if(a.length===0)return{minCampaignDuration:c.min_campaign_duration.US,maxCampaignDuration:c.max_campaign_duration.US,maxDaysToFinish:c.max_days_to_finish.US,minReachLimits:b("getByPath")(c,["min_reach_limits","US"])||p};var d=a.map(function(a){return c.min_campaign_duration[a]}),e=a.map(function(a){return c.max_campaign_duration[a]}),f=a.map(function(a){return c.max_days_to_finish[a]});a=a.map(function(a){return b("getByPath")(c,["min_reach_limits",a])||p});return{minCampaignDuration:Math.max.apply(Math,d),maxCampaignDuration:Math.min.apply(Math,e),maxDaysToFinish:Math.min.apply(Math,f),minReachLimits:Math.max.apply(Math,a)}}function ga(a,c){a=$(b("AdsTargetingCountryUtils").getUniqueCountries(a),c);c=a.minReachLimits;return c}function ha(a){return new Set(a.map(function(a){return b("AdsReachFrequencyContinentMap").country_regions[a]})).size>1?!1:!0}function ia(a){switch(a){case b("AdsAPIObjectives").BRAND_AWARENESS:return h._("Ad Recall Lift");case b("AdsAPIObjectives").LINK_CLICKS:return h._("Link Clicks");case b("AdsAPIObjectives").POST_ENGAGEMENT:return h._("Post Engagement");case b("AdsAPIObjectives").APP_INSTALLS:return h._("App Installs");case b("AdsAPIObjectives").CONVERSIONS:return h._("Conversions");default:return h._("Impressions")}}function ja(a){switch(a){case b("AdsAPIObjectives").BRAND_AWARENESS:return h._("- We'll deliver your ads to the predicted number of people and maximize the total number of people who will remember seeing your ads.");case b("AdsAPIObjectives").LINK_CLICKS:return h._("- We'll deliver your ads to the predicted number of people and maximize link clicks from your ad to a destination, on or off Facebook, at the lowest cost.");case b("AdsAPIObjectives").POST_ENGAGEMENT:return h._("- We'll deliver your ads to the predicted number of people and maximize likes, shares, or comments on your post at the lowest cost.");case b("AdsAPIObjectives").APP_INSTALLS:return h._("- We'll deliver your ads to the predicted number of people and help you get the most app installs at the lowest cost.");case b("AdsAPIObjectives").CONVERSIONS:return h._("- We'll deliver your ads to the predicted number of people and help you get the most website conversions at the lowest cost.");default:return h._("- We'll deliver your ads to the predicted number of people.")}}function ka(a,b){var c=24*60*60;a=a.getRelativeInUTC();b=b.getRelativeInUTC();return{pauseStartDay:a.startOfDay().instant/c,startTimeOffset:a.instant-a.startOfDay().instant,pauseEndDay:b.startOfDay().instant/c,endTimeOffset:b.instant-b.startOfDay().instant}}function la(a,c){var d=!0;c&&(d=a.isBefore(c.subtractDays(n)));return a.isAfter(b("DateTime").now(a.timezoneID))&&d}function ma(a,c,d,e,f,g,h,i){__p&&__p();if(!i||!i.hasValue()||!d)return;if(g&&!f){f=d?d.campaign_id:null;h=G(h,c,d);c=h.isMidCampaignEdit;h=i.getValueEnforcing();b("AdsReachFrequencyFlowActions").initExisting(a,f,e,b("nullthrows")(h),d,c,!0)}b("AdsReachFrequencyFlowSetIsEditModeAction").dispatch({ids:[e],isEditMode:g},{line:"900",module:"AdsReachFrequencyUtils.js"})}function na(a){return a.some(function(a){return a.formatType==="stories_carousel"||a.formatType==="canvas"||a.formatType==="spherical_image"})}e.exports={abbreviateCurrency:M,abbrevLargeNumber:P,DEFAULT_DUPLICATION_NAME:t,defaults:A,feedPlacement:s,findPageByID:g,formatPercentage:O,genPredictionPausePeriod:ka,getAppStore:X,getAverageFrequency:ba,getCPM:aa,getDaysBetween:S,getDecimal:N,getDestinationName:Y,getEditingDisabled:ea,getFormattedDate:W,getIsMidCampaignEditAndImmutableCampaign:G,getMergedRFSpec:$,getMidFlightEditLowPerformanceMessage:d,getMinimumReach:ga,getOptimizationDescriptionFromObjective:ja,getOptimizationGoalFromObjective:ia,getPassedDays:V,getPredictionID:I,getPredictionMode:a,getPredictionModeName:c,getPredictionPageTypes:J,getUnpauseAdsetMessage:f,getValidNameForDuplication:K,hasInstagram:ca,hasSingleRegion:ha,IMPS_PER_M:v,isCampaignCloseToEnd:fa,isDefaultSchedule:da,isInstagramSupportedObjective:Z,isMidnight:U,isMobilePlatformOnlyForAdFormats:na,isReachAndFrequencyCampaign:Q,isSubstring:R,isValidDaysToFinish:H,isValidNielsenName:L,isValidPauseEnd:la,onReviewTabChange:ma,roundBigNumber:T}}),null); __d("AdsReachFrequencyUtils.bs",["AdsReachFrequencyUtils"],(function(a,b,c,d,e,f){"use strict";function a(a){return a.toDate()}function c(a,c){a=a.toDate();c=c.toDate();return b("AdsReachFrequencyUtils").getDaysBetween(a,c)}f.getDaysBetweenDateTime=c;f.toDate=a}),null); __d("AdsCampaignFrequencyIntervalValidator.bs",["bs_array","bs_block","bs_curry","AdsArray.bs","AdsTypes.bs","bs_caml_obj","DateTime","AdsUVPaths.bs","AdsCampaign.bs","AdsAdAccount.bs","bs_js_primitive","AdsValidators.bs","AdsAccountUtils.bs","AdsCampaignGroup.bs","AdsEnum_Objective.bs","AdsEnum_BuyingType.bs","AdsCampaignValidator.bs","FrequencyControlSpec.bs","AdsReachFrequencyUtils.bs","AdsEnum_OptimizationGoal.bs","AdsFrequencyControlEditorUtils.bs","AdsFrequencyControlEditorConstants.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){var c=a[3],d=a[2];a=a[0];var e=b("AdsAdAccount.bs").getCapabilities(a);a=b("AdsAdAccount.bs").getTimeZoneID(a);var f=b("AdsCampaignGroup.bs").getObjective(c),g=b("AdsCampaign.bs").getOptimizationGoal(d);if(e!==void 0&&a!==void 0&&f!==void 0&&g!==void 0)return[b("AdsCampaignGroup.bs").getBuyingType(c),e,b("AdsCampaign.bs").getEndTime(d),b("AdsCampaign.bs").getFrequencyControlSpecs(d),b("bs_js_primitive").valFromOption(f),b("bs_js_primitive").valFromOption(g),b("AdsCampaign.bs").getStartTime(d),a]}function g(a){var c=a[3];a=a[0];if(a!==void 0&&c!==void 0&&b("bs_js_primitive").valFromOption(a)===b("AdsEnum_BuyingType.bs").auction)return b("AdsArray.bs").length(c)>0;else return!1}function h(a){if(a!==void 0){a=a;if(a>=b("AdsFrequencyControlEditorConstants.bs").minIntervalDays)return a<=b("AdsFrequencyControlEditorConstants.bs").maxIntervalDays;else return!1}else return!1}function i(a,c){__p&&__p();if(a===b("AdsEnum_Objective.bs").reach)return c===b("AdsEnum_OptimizationGoal.bs").reach;else if(a===b("AdsEnum_Objective.bs").brand_awareness)if(c===b("AdsEnum_OptimizationGoal.bs").reach||c===b("AdsEnum_OptimizationGoal.bs").brand_awareness)return!0;else return c===b("AdsEnum_OptimizationGoal.bs").ad_recall_lift;else if(a===b("AdsEnum_Objective.bs").post_engagement)return c===b("AdsEnum_OptimizationGoal.bs").post_engagement;else if(a===b("AdsEnum_Objective.bs").video_views)if(c===b("AdsEnum_OptimizationGoal.bs").video_views||c===b("AdsEnum_OptimizationGoal.bs").two_second_continuous_video_views)return!0;else return c===b("AdsEnum_OptimizationGoal.bs").thruplay;else return!1}function j(a,c,d){if(a!==void 0)return b("bs_caml_obj").caml_lessequal(b("bs_js_primitive").valFromOption(a),b("bs_caml_obj").caml_max(c,d));else return!1}function c(a,c){__p&&__p();a=a[0];if(g(c)){var d=c[3];if(d!==void 0){d=b("AdsArray.bs").get(d,0);if(d!==void 0){d=b("FrequencyControlSpec.bs").getIntervalDays(b("bs_js_primitive").valFromOption(d));if(h(d)){var e=b("AdsAccountUtils.bs").hasCapabilityFromList(c[1],"CAN_USE_FREQUENCY_CONTROLS_FOR_AUCTION_GK");if(e){e=c[5];if(i(c[4],e)){var f=c[7],k=c[6];c=c[2];if(k!==void 0&&c!==void 0){k=b("DateTime").fromISOString(b("AdsTypes.bs").adsAPITimeStringToString(b("bs_js_primitive").valFromOption(k)),f);c=b("DateTime").fromISOString(b("AdsTypes.bs").adsAPITimeStringToString(b("bs_js_primitive").valFromOption(c)),f);f=b("AdsReachFrequencyUtils.bs").getDaysBetweenDateTime(k,c);k=b("AdsFrequencyControlEditorUtils.bs").getMinimumDefaultInterval(e);if(j(d,f,k))return 0;else return b("bs_curry")._3(a,void 0,b("AdsUVPaths.bs").Campaign[2],60)}else return 0}else return b("bs_curry")._3(a,void 0,b("bs_array").append(b("AdsUVPaths.bs").Campaign[2],b("AdsUVPaths.bs").FrequencyControl[1]),59)}else return 0}else return b("bs_curry")._3(a,void 0,b("bs_array").append(b("AdsUVPaths.bs").Campaign[2],b("AdsUVPaths.bs").FrequencyControl[1]),b("bs_block").__(3,[b("AdsFrequencyControlEditorConstants.bs").minIntervalDays,b("AdsFrequencyControlEditorConstants.bs").maxIntervalDays]))}else return 0}else return 0}else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignFrequencyIntervalValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsCampaignGroupsPositionValidator.bs",["bs_curry","AdsUVPaths.bs","AdsValidators.bs","AdsCampaignValidator.bs","AdsEnum_FacebookPosition.bs","AdsUtils_Placement_Facebook.bs","AdsPlacementEligibilityInformation.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){return b("AdsPlacementEligibilityInformation.bs").getPlacementSpec(a[7])}function c(a,c){if(b("AdsUtils_Placement_Facebook.bs").adsPlacementAPISpecReaderIsActiveFacebookPosition(c,b("AdsEnum_FacebookPosition.bs").groups)){c=b("AdsUtils_Placement_Facebook.bs").adsPlacementAPISpecReaderIsActiveFacebookPosition(c,b("AdsEnum_FacebookPosition.bs").feed);if(c)return 0;else return b("bs_curry")._3(a[0],void 0,b("AdsUVPaths.bs").Campaign[1][3],45)}else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignGroupsPositionValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsCampaignInstantArticlePositionValidator.bs",["bs_curry","AdsUVPaths.bs","AdsAdAccount.bs","bs_js_primitive","AdsValidators.bs","AdsAccountUtils.bs","AdsCampaignValidator.bs","AdsEnum_FacebookPosition.bs","AdsUtils_Placement_Facebook.bs","AdsPlacementEligibilityInformation.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){var c=b("AdsAdAccount.bs").getCapabilities(a[0]);a=b("AdsPlacementEligibilityInformation.bs").getPlacementSpec(a[7]);if(c!==void 0&&a!==void 0)return[c,b("bs_js_primitive").valFromOption(a)]}function c(a,c){if(b("AdsUtils_Placement_Facebook.bs").adsPlacementAPISpecReaderIsActiveFacebookPosition(c[1],b("AdsEnum_FacebookPosition.bs").instant_article)){var d=b("AdsUtils_Placement_Facebook.bs").adsPlacementAPISpecReaderIsActiveFacebookPosition(c[1],b("AdsEnum_FacebookPosition.bs").feed);c=b("AdsAccountUtils.bs").hasCapabilityFromList(c[0],"ALLOW_INSTANT_ARTICLE_PLACEMENT_ONLY");if(!d&&!c)return b("bs_curry")._3(a[0],void 0,b("AdsUVPaths.bs").Campaign[1][3],39);else return 0}else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignInstantArticlePositionValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsCampaignMarketplacePositionValidator.bs",["bs_curry","AdsUVPaths.bs","AdsAdAccount.bs","bs_js_primitive","AdsValidators.bs","AdsAccountUtils.bs","AdsCampaignValidator.bs","AdsEnum_FacebookPosition.bs","AdsUtils_Placement_Facebook.bs","AdsPlacementEligibilityInformation.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){var c=b("AdsAdAccount.bs").getCapabilities(a[0]);a=b("AdsPlacementEligibilityInformation.bs").getPlacementSpec(a[7]);if(c!==void 0&&a!==void 0)return[c,b("bs_js_primitive").valFromOption(a)]}function c(a,c){if(b("AdsUtils_Placement_Facebook.bs").adsPlacementAPISpecReaderIsActiveFacebookPosition(c[1],b("AdsEnum_FacebookPosition.bs").marketplace)){var d=b("AdsUtils_Placement_Facebook.bs").adsPlacementAPISpecReaderIsActiveFacebookPosition(c[1],b("AdsEnum_FacebookPosition.bs").feed);c=b("AdsAccountUtils.bs").hasCapabilityFromList(c[0],"CAN_CREATE_MARKETPLACE_ONLY_AD");if(!d&&!c)return b("bs_curry")._3(a[0],void 0,b("AdsUVPaths.bs").Campaign[1][3],38);else return 0}else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignMarketplacePositionValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsCampaignMaxFrequencyValidator.bs",["bs_array","bs_block","bs_curry","AdsArray.bs","AdsUVPaths.bs","bs_caml_array","AdsCampaign.bs","AdsAdAccount.bs","AdsValidators.bs","AdsAccountUtils.bs","AdsCampaignValidator.bs","FrequencyControlSpec.bs","AdsFrequencyControlEditorConstants.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){var c=b("AdsAdAccount.bs").getCapabilities(a[0]);a=b("AdsCampaign.bs").getFrequencyControlSpecs(a[2]);return[c,a]}function g(a){a=a[1];if(a!==void 0)return b("AdsArray.bs").length(a)>0;else return!1}function h(a){if(a!==void 0){a=a;if(a>=b("AdsFrequencyControlEditorConstants.bs").minIntervalDays)return a<=b("AdsFrequencyControlEditorConstants.bs").maxIntervalDays;else return!1}else return!1}function c(a,c){__p&&__p();if(g(c)){var d=c[1];c=c[0];if(!b("AdsAccountUtils.bs").hasCapabilityFromList(c,"CAN_USE_BRAND_EXTENDED_FREQUENCY_CONTROLS")&&!b("AdsAccountUtils.bs").hasCapabilityFromList(c,"CAN_USE_FREQUENCY_CONTROLS_FOR_AUCTION_GK")||d===void 0)return 0;else{c=b("FrequencyControlSpec.bs").getMaxFrequency(b("bs_caml_array").caml_array_get(d,0));if(h(c))return 0;else return b("bs_curry")._3(a[0],void 0,b("bs_array").append(b("AdsUVPaths.bs").Campaign[2],b("AdsUVPaths.bs").FrequencyControl[0]),b("bs_block").__(2,[b("AdsFrequencyControlEditorConstants.bs").minIntervalDays,b("AdsFrequencyControlEditorConstants.bs").maxIntervalDays]))}}else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignMaxFrequencyValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsCampaignMaxMinSpendLimitConflictValidator.bs",["bs_curry","AdsCampaign.bs","AdsValidators.bs","AdsCampaignValidator.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){a=a[2];return[b("AdsCampaign.bs").getDailyMinSpendTarget(a),b("AdsCampaign.bs").getDailySpendCap(a),b("AdsCampaign.bs").getLifetimeMinSpendTarget(a),b("AdsCampaign.bs").getLifetimeSpendCap(a)]}function g(a){__p&&__p();var b=a[3],c=a[2],d=a[1];a=a[0];if(a!==void 0&&d!==void 0)if(a>0)return d>0;else return!1;else a=1;if(a===1)if(c!==void 0&&b!==void 0&&c>0)return b>0;else return!1}function c(a,c){__p&&__p();if(g(c)){var d=c[3],e=c[2],f=c[1];c=c[0];c=c!==void 0?c:e!==void 0?e:0;e=f!==void 0?f:d!==void 0?d:0;if(c>.9*e)return b("bs_curry")._3(a[0],void 0,void 0,48);else return 0}else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignMaxMinSpendLimitConflictValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsCampaignMessengerInboxPositionValidator.bs",["bs_curry","AdsUVPaths.bs","AdsAdAccount.bs","bs_js_primitive","AdsValidators.bs","AdsAccountUtils.bs","AdsCampaignValidator.bs","AdsEnum_FacebookPosition.bs","AdsEnum_MessengerPosition.bs","AdsUtils_Placement_Facebook.bs","AdsUtils_Placement_Messenger.bs","AdsPlacementEligibilityInformation.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){var c=b("AdsAdAccount.bs").getCapabilities(a[0]);a=b("AdsPlacementEligibilityInformation.bs").getPlacementSpec(a[7]);if(c!==void 0&&a!==void 0)return[c,b("bs_js_primitive").valFromOption(a)]}function c(a,c){if(b("AdsUtils_Placement_Messenger.bs").isActiveMessengerPosition(b("AdsEnum_MessengerPosition.bs").messenger_inbox,c[1])){var d=b("AdsUtils_Placement_Facebook.bs").adsPlacementAPISpecReaderIsActiveFacebookPosition(c[1],b("AdsEnum_FacebookPosition.bs").feed);if(!d&&!b("AdsAccountUtils.bs").hasCapabilityFromList(c[0],"ALLOW_MESSENGER_INBOX_PLACEMENT_ONLY"))return b("bs_curry")._3(a[0],void 0,b("AdsUVPaths.bs").Campaign[1][6],36);else return 0}else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignMessengerInboxPositionValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsCampaignMessengerStoryPositionValidator.bs",["bs_curry","AdsUVPaths.bs","AdsValidators.bs","AdsCampaignValidator.bs","AdsEnum_FacebookPosition.bs","AdsEnum_InstagramPosition.bs","AdsEnum_MessengerPosition.bs","AdsUtils_Placement_Facebook.bs","AdsUtils_Placement_Instagram.bs","AdsUtils_Placement_Messenger.bs","AdsPlacementEligibilityInformation.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){return b("AdsPlacementEligibilityInformation.bs").getPlacementSpec(a[7])}function c(a,c){if(b("AdsUtils_Placement_Messenger.bs").isActiveMessengerPosition(b("AdsEnum_MessengerPosition.bs").messenger_story,c)){var d=b("AdsUtils_Placement_Facebook.bs").adsPlacementAPISpecReaderIsActiveFacebookPosition(c,b("AdsEnum_FacebookPosition.bs").feed),e=b("AdsUtils_Placement_Facebook.bs").adsPlacementAPISpecReaderIsActiveFacebookPosition(c,b("AdsEnum_FacebookPosition.bs").story);c=b("AdsUtils_Placement_Instagram.bs").adsPlacementAPISpecReaderIsActiveInstagramPosition(c,b("AdsEnum_InstagramPosition.bs").story);if(d||e||c)return 0;else return b("bs_curry")._3(a[0],void 0,b("AdsUVPaths.bs").Campaign[1][6],37)}else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignMessengerStoryPositionValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsCampaignNameValidator.bs",["bs_curry","FBString.bs","AdsCampaign.bs","AdsValidators.bs","AdsValidationConsts","AdsCampaignValidator.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){return b("AdsCampaign.bs").getName(a[2])}function c(a,c){if(b("FBString.bs").length(c)>b("AdsValidationConsts").nameMaxLength)return b("bs_curry")._3(a[0],void 0,void 0,4);else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignNameValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("PageImpl.bs",["bs_js_primitive","AdsDataModelUtils.bs","bs_js_null_undefined"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g={id:null,name:null,offer_eligible:null};function a(a){return b("bs_js_primitive").nullable_to_opt(a.id)}function c(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{id:b("bs_js_null_undefined").fromOption(a)})}function d(a){return b("bs_js_primitive").nullable_to_opt(a.name)}function e(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{name:b("bs_js_null_undefined").fromOption(a)})}function h(a){return b("bs_js_primitive").nullable_to_opt(a.offer_eligible)}function i(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{offer_eligible:b("bs_js_null_undefined").fromOption(a)})}f.empty=g;f.getID=a;f.setID=c;f.getName=d;f.setName=e;f.getOfferEligible=h;f.setOfferEligible=i}),null); __d("Page.bs",["FBOption.bs","PageImpl.bs","bs_js_primitive"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("PageImpl.bs").getID;function a(a,c){return b("PageImpl.bs").setID(b("bs_js_primitive").some(a),c)}function c(a){return b("PageImpl.bs").setID(void 0,a)}function d(a,c){a=b("FBOption.bs").map(a,b("PageImpl.bs").getID(c));return b("PageImpl.bs").setID(a,c)}var h=b("PageImpl.bs").getName;function e(a,c){return b("PageImpl.bs").setName(a,c)}function i(a){return b("PageImpl.bs").setName(void 0,a)}function j(a,c){a=b("FBOption.bs").map(a,b("PageImpl.bs").getName(c));return b("PageImpl.bs").setName(a,c)}var k=b("PageImpl.bs").getOfferEligible;function l(a,c){return b("PageImpl.bs").setOfferEligible(a,c)}function m(a){return b("PageImpl.bs").setOfferEligible(void 0,a)}function n(a,c){a=b("FBOption.bs").map(a,b("PageImpl.bs").getOfferEligible(c));return b("PageImpl.bs").setOfferEligible(a,c)}f.getID=g;f.setID=a;f.deleteID=c;f.updateID=d;f.getName=h;f.setName=e;f.deleteName=i;f.updateName=j;f.getOfferEligible=k;f.setOfferEligible=l;f.deleteOfferEligible=m;f.updateOfferEligible=n}),null); __d("AdsCampaignOfferIDValidator.bs",["Page.bs","bs_curry","FBOption.bs","AdsUVPaths.bs","AdsCampaign.bs","bs_js_primitive","AdsValidators.bs","AdsCampaignGroup.bs","AdsEnum_Objective.bs","AdsPromotedObject.bs","AdsCampaignValidator.bs","AdsAPIPromotedObjectFields"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){var c=b("AdsCampaignGroup.bs").getObjective(a[3]),d=b("AdsCampaign.bs").getPromotedObject(a[2]);if(c!==void 0&&d!==void 0)return[b("bs_js_primitive").valFromOption(c),a[10],b("bs_js_primitive").valFromOption(d)]}function c(a,c){__p&&__p();a=a[0];if(c[0]===b("AdsEnum_Objective.bs").offer_claims){var d=c[1];if(d!==void 0){d=b("FBOption.bs").$$default(!1,b("Page.bs").getOfferEligible(b("bs_js_primitive").valFromOption(d)));d||b("bs_curry")._3(a,b("AdsAPIPromotedObjectFields").PAGE_ID,b("AdsUVPaths.bs").Campaign[0][5],51)}d=b("AdsPromotedObject.bs").getOfferID(c[2]);if(b("FBOption.bs").isNone(d))return b("bs_curry")._3(a,void 0,b("AdsUVPaths.bs").Campaign[0][3],52);else return 0}else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignOfferIDValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsCampaignPageValidator.bs",["bs_curry","FBOption.bs","AdsUVPaths.bs","AdsCampaign.bs","AdsValidators.bs","AdsCampaignGroup.bs","AdsEnum_Objective.bs","AdsPromotedObject.bs","AdsCampaignValidator.bs","AdsAPIPromotedObjectFields","AdsUtils_Placement_Messenger.bs","AdsPlacementEligibilityInformation.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){var c=a[8],d=b("FBOption.bs").map(b("AdsUtils_Placement_Messenger.bs").isMessengerThreadSelected,b("AdsPlacementEligibilityInformation.bs").getPlacementSpec(a[7])),e=b("FBOption.bs").map(function(a){if(a===b("AdsEnum_Objective.bs").page_likes||a===b("AdsEnum_Objective.bs").lead_generation)return!0;else return a===b("AdsEnum_Objective.bs").offer_claims},b("AdsCampaignGroup.bs").getObjective(a[3]));if(c!==void 0&&d!==void 0&&e!==void 0)return[c,d,e,a[2]]}function g(a){if(a[0])if(a[1])return!0;else return a[2];else return!1}function c(a,c){if(g(c)){var d=b("FBOption.bs").map(b("AdsPromotedObject.bs").getPageID,b("AdsCampaign.bs").getPromotedObject(c[3]));c=b("FBOption.bs").map(b("AdsPromotedObject.bs").getPlacePageSetID,b("AdsCampaign.bs").getPromotedObject(c[3]));if(d!==void 0||c!==void 0)return 0;else return b("bs_curry")._3(a[0],b("AdsAPIPromotedObjectFields").PAGE_ID,b("AdsUVPaths.bs").Campaign[0][5],13)}else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignPageValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsPartialAutomaticPlacementUtils.bs",["bs_list","bs_array","AdsArray.bs","Targeting.bs","AdsEnum_PublisherPlatform.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function g(a){if(a!==void 0)return b("AdsArray.bs").length(a)===0;else return!0}function h(a,c){__p&&__p();if(a===b("AdsEnum_PublisherPlatform.bs").facebook)return g(b("Targeting.bs").getFacebookPositions(c));else if(a===b("AdsEnum_PublisherPlatform.bs").instagram)return g(b("Targeting.bs").getInstagramPositions(c));else if(a===b("AdsEnum_PublisherPlatform.bs").audience_network)return g(b("Targeting.bs").getAudienceNetworkPositions(c));else if(a===b("AdsEnum_PublisherPlatform.bs").messenger)return g(b("Targeting.bs").getMessengerPositions(c));else if(a===b("AdsEnum_PublisherPlatform.bs").whatsapp)return g(b("Targeting.bs").getWhatsAppPositions(c));else return!1}function a(a){var c=b("Targeting.bs").getPublisherPlatforms(a);if(c!==void 0){c=c;if(b("AdsArray.bs").length(c)===0)return[];else return b("bs_array").of_list(b("bs_list").filter(function(b){return h(b,a)})(b("bs_array").to_list(c)))}else return[]}f.verifyEmptyPositions=g;f.verifyPartialPublisherPlatform=h;f.getPartialAutomaticPlatforms=a}),null); __d("AdsCampaignPartialAutomaticPublisherPlatfromsValidator.bs",["bs_curry","gkx","AdsArray.bs","AdsUVPaths.bs","AdsCampaign.bs","AdsValidators.bs","AdsCampaignValidator.bs","AdsPartialAutomaticPlacementUtils.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){return b("AdsCampaign.bs").getTargeting(a[2])}function c(a,c){if(b("gkx")("678194")){c=b("AdsPartialAutomaticPlacementUtils.bs").getPartialAutomaticPlatforms(c);if(b("AdsArray.bs").length(c)!==0)return b("bs_curry")._3(a[0],void 0,b("AdsUVPaths.bs").Campaign[1][3],53);else return 0}else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignPartialAutomaticPublisherPlatfromsValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsCampaignPredictionValidator.bs",["bs_curry","AdsUVPaths.bs","AdsCampaign.bs","bs_js_primitive","AdsValidators.bs","AdsCampaignGroup.bs","AdsEnum_BuyingType.bs","AdsCampaignValidator.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){var c=b("AdsCampaignGroup.bs").getBuyingType(a[3]);a=b("AdsCampaign.bs").getRFPredictionID(a[2]);if(c!==void 0)return[b("bs_js_primitive").valFromOption(c),a]}function c(a,c){if(c[0]===b("AdsEnum_BuyingType.bs").reserved&&c[1]===void 0)return b("bs_curry")._3(a[0],void 0,b("AdsUVPaths.bs").Campaign[4],22);else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignPredictionValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsCampaignProductSetValidator.bs",["bs_curry","FBOption.bs","AdsUVPaths.bs","AdsCampaign.bs","bs_js_primitive","AdsValidators.bs","AdsCampaignGroup.bs","AdsEnum_Objective.bs","AdsPromotedObject.bs","AdsCampaignValidator.bs","AdsEnum_OptimizationGoal.bs","AdsAPIPromotedObjectFields","AdsEnum_PromotedObjectTypes.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){var c=a[3],d=a[2],e=b("AdsCampaignGroup.bs").getObjective(c),f=b("AdsCampaign.bs").getOptimizationGoal(d);c=b("AdsCampaignGroup.bs").getPromotedObject(c);d=b("AdsCampaign.bs").getPromotedObject(d);if(e!==void 0&&f!==void 0&&c!==void 0&&d!==void 0)return[b("bs_js_primitive").valFromOption(c),b("bs_js_primitive").valFromOption(d),b("bs_js_primitive").valFromOption(e),b("bs_js_primitive").valFromOption(f),a[11]]}function g(a){var c=b("AdsPromotedObject.bs").getProductCatalogID(a[0]);if(a[2]===b("AdsEnum_Objective.bs").store_visits&&b("FBOption.bs").isSome(c))return!0;else return a[4]===b("AdsEnum_PromotedObjectTypes.bs").product_set}function c(a,c){__p&&__p();a=a[0];if(g(c)){var d=c[1],e=b("AdsPromotedObject.bs").getProductSetID(d);d=b("AdsPromotedObject.bs").getCustomEventType(d);b("FBOption.bs").isNone(e)&&b("bs_curry")._3(a,b("AdsAPIPromotedObjectFields").PRODUCT_SET_ID,b("AdsUVPaths.bs").Campaign[0][7],34);if(b("FBOption.bs").isNone(d)&&c[3]===b("AdsEnum_OptimizationGoal.bs").offsite_conversions)return b("bs_curry")._3(a,b("AdsAPIPromotedObjectFields").CUSTOM_EVENT_TYPE,b("AdsUVPaths.bs").Campaign[0][1],35);else return 0}else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignProductSetValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsEnum_AdsContractIOType.bs",["AdsContractIOType"],(function(a,b,c,d,e,f){"use strict";a=b("AdsContractIOType").UNSPECIFIED;c=b("AdsContractIOType").RF;f.unspecified=a;f.rf=c}),null); __d("AdsReachFrequencyContractStatus",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({APPROVED:"Approved",DRAFT:"Draft"})}),null); __d("AdsEnum_AdsReachFrequencyContractStatus.bs",["AdsReachFrequencyContractStatus"],(function(a,b,c,d,e,f){"use strict";a=b("AdsReachFrequencyContractStatus").APPROVED;c=b("AdsReachFrequencyContractStatus").DRAFT;f.approved=a;f.draft=c}),null); __d("ContractImpl.bs",["bs_js_primitive","AdsDataModelUtils.bs","bs_js_null_undefined"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g={io_type:null,status:null};function a(a){return b("bs_js_primitive").nullable_to_opt(a.io_type)}function c(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{io_type:b("bs_js_null_undefined").fromOption(a)})}function d(a){return b("bs_js_primitive").nullable_to_opt(a.status)}function e(a,c){return b("AdsDataModelUtils.bs").unsafeSet(c,{status:b("bs_js_null_undefined").fromOption(a)})}f.empty=g;f.getIOType=a;f.setIOType=c;f.getStatus=d;f.setStatus=e}),null); __d("Contract.bs",["FBOption.bs","ContractImpl.bs","bs_js_primitive"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("ContractImpl.bs").getIOType;function a(a,c){return b("ContractImpl.bs").setIOType(b("bs_js_primitive").some(a),c)}function c(a){return b("ContractImpl.bs").setIOType(void 0,a)}function d(a,c){a=b("FBOption.bs").map(a,b("ContractImpl.bs").getIOType(c));return b("ContractImpl.bs").setIOType(a,c)}var h=b("ContractImpl.bs").getStatus;function e(a,c){return b("ContractImpl.bs").setStatus(b("bs_js_primitive").some(a),c)}function i(a){return b("ContractImpl.bs").setStatus(void 0,a)}function j(a,c){a=b("FBOption.bs").map(a,b("ContractImpl.bs").getStatus(c));return b("ContractImpl.bs").setStatus(a,c)}f.getIOType=g;f.setIOType=a;f.deleteIOType=c;f.updateIOType=d;f.getStatus=h;f.setStatus=e;f.deleteStatus=i;f.updateStatus=j}),null); __d("AdsCampaignReachFrequencyIOValidator.bs",["FB.bs","bs_curry","Contract.bs","AdsUVPaths.bs","AdsCampaign.bs","bs_js_primitive","AdsValidators.bs","AdsCampaignGroup.bs","AdsEnum_BuyingType.bs","AdsCampaignValidator.bs","AdsEnum_AdsRunStatus.bs","AdsEnum_AdsContractIOType.bs","AdsEnum_AdsReachFrequencyContractStatus.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){var c=a[5],d=b("AdsCampaignGroup.bs").getBuyingType(a[3]),e=b("AdsCampaign.bs").getStatus(a[2]);a=b("AdsCampaign.bs").getStatus(a[9]);if(d!==void 0&&e!==void 0&&a!==void 0)return[b("bs_js_primitive").valFromOption(d),b("FB.bs").$great$great$eq(c,b("Contract.bs").getStatus),b("FB.bs").$great$great$eq(c,b("Contract.bs").getIOType),b("bs_js_primitive").valFromOption(a),b("bs_js_primitive").valFromOption(e)]}function g(a){var c=a[2];if(c!==void 0&&a[0]===b("AdsEnum_BuyingType.bs").reserved&&a[3]===b("AdsEnum_AdsRunStatus.bs").paused)return b("bs_js_primitive").valFromOption(c)===b("AdsEnum_AdsContractIOType.bs").rf;else return!1}function c(a,c){if(g(c)){var d=c[1];if(d!==void 0&&c[4]===b("AdsEnum_AdsRunStatus.bs").active&&b("bs_js_primitive").valFromOption(d)!==b("AdsEnum_AdsReachFrequencyContractStatus.bs").approved)return b("bs_curry")._3(a[0],void 0,b("AdsUVPaths.bs").Campaign[5],54);else return 0}else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignReachFrequencyIOValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsEnum_OffsiteCustomEventType.bs",["OffsiteCustomEventType"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=b("OffsiteCustomEventType").JOB_ALERT_SUBSCRIBE;c=b("OffsiteCustomEventType").JOB_APPLICATION_CREATE;d=b("OffsiteCustomEventType").JOB_APPLICATION_FORM_IMPRESSION;e=b("OffsiteCustomEventType").JOB_BROWSER_IMPRESSION;var g=b("OffsiteCustomEventType").JOB_OPENING_DETAIL_VIEW_IMPRESSION,h=b("OffsiteCustomEventType").ACTIVATE_APP,i=b("OffsiteCustomEventType").COMPLETE_REGISTRATION,j=b("OffsiteCustomEventType").CONTENT_VIEW,k=b("OffsiteCustomEventType").ONSITE_APP_CONTENT_VIEW,l=b("OffsiteCustomEventType").ONSITE_WEB_CONTENT_VIEW,m=b("OffsiteCustomEventType").ONSITE_WEB_APP_CONTENT_VIEW,n=b("OffsiteCustomEventType").SEARCH,o=b("OffsiteCustomEventType").RATE,p=b("OffsiteCustomEventType").TUTORIAL_COMPLETION,q=b("OffsiteCustomEventType").CONTACT,r=b("OffsiteCustomEventType").CUSTOMIZE_PRODUCT,s=b("OffsiteCustomEventType").DONATE,t=b("OffsiteCustomEventType").FIND_LOCATION,u=b("OffsiteCustomEventType").SCHEDULE,v=b("OffsiteCustomEventType").START_TRIAL,w=b("OffsiteCustomEventType").SUBMIT_APPLICATION,x=b("OffsiteCustomEventType").SUBSCRIBE,y=b("OffsiteCustomEventType").VISIT_LOCATION,z=b("OffsiteCustomEventType").AD_CLICK,A=b("OffsiteCustomEventType").AD_IMPRESSION,B=b("OffsiteCustomEventType").ADD_TO_CART,C=b("OffsiteCustomEventType").ONSITE_APP_ADD_TO_CART,D=b("OffsiteCustomEventType").ONSITE_WEB_ADD_TO_CART,E=b("OffsiteCustomEventType").ONSITE_WEB_APP_ADD_TO_CART,F=b("OffsiteCustomEventType").ADD_TO_WISHLIST,G=b("OffsiteCustomEventType").INITIATED_CHECKOUT,H=b("OffsiteCustomEventType").ADD_PAYMENT_INFO,I=b("OffsiteCustomEventType").PURCHASE,J=b("OffsiteCustomEventType").ONSITE_APP_PURCHASE,K=b("OffsiteCustomEventType").ONSITE_WEB_PURCHASE,L=b("OffsiteCustomEventType").ONSITE_WEB_APP_PURCHASE,M=b("OffsiteCustomEventType").MESSAGE_TO_BUY,N=b("OffsiteCustomEventType").LEAD,O=b("OffsiteCustomEventType").LEVEL_ACHIEVED,P=b("OffsiteCustomEventType").ACHIEVEMENT_UNLOCKED,Q=b("OffsiteCustomEventType").SPENT_CREDITS,R=b("OffsiteCustomEventType").FLOW_COMPLETE,S=b("OffsiteCustomEventType").SERVICE_BOOKING_REQUEST,T=b("OffsiteCustomEventType").MESSAGING_ACCEPT,U=b("OffsiteCustomEventType").MESSAGING_BLOCK,V=b("OffsiteCustomEventType").MESSAGING_DELETE_THREAD,W=b("OffsiteCustomEventType").MESSAGING_MARK_SPAM,X=b("OffsiteCustomEventType").MESSAGING_REPLY,Y=b("OffsiteCustomEventType").MESSAGING_FIRST_REPLY,Z=b("OffsiteCustomEventType").MESSAGING_OPEN_THREAD,$=b("OffsiteCustomEventType").MESSAGING_IGNORE_REQUEST,aa=b("OffsiteCustomEventType").MESSAGING_PROMOTIONAL_OFF,ba=b("OffsiteCustomEventType").MESSAGING_READ_RECEIPT,ca=b("OffsiteCustomEventType").MESSAGING_DELIVERY_RECEIPT,da=b("OffsiteCustomEventType").MESSAGING_DELETE_MESSAGE,ea=b("OffsiteCustomEventType").MESSAGING_CONVERSATION_STARTED_7D,fa=b("OffsiteCustomEventType").MESSAGING_DEEP_CONVERSATION,ga=b("OffsiteCustomEventType").MESSAGING_AUTOMATED_FLOW_COMPLETE,ha=b("OffsiteCustomEventType").MESSAGING_AUTOMATED_FLOW_CANCELLED,ia=b("OffsiteCustomEventType").REFERRAL_SENDER_INVITES_SENT,ja=b("OffsiteCustomEventType").REFERRAL_SENDER_MESSAGE_SENT,ka=b("OffsiteCustomEventType").REFERRAL_RECEIVER_IMPRESSION,la=b("OffsiteCustomEventType").REFERRAL_RECEIVER_CLICK,ma=b("OffsiteCustomEventType").VIDEO_HOME_SELECTED,na=b("OffsiteCustomEventType").VIDEO_HOME_WATCHLIST,oa=b("OffsiteCustomEventType").VIDEO_HOME_EXPLORE,pa=b("OffsiteCustomEventType").VIDEO_HOME_PLAYER_START,qa=b("OffsiteCustomEventType").VIDEO_HOME_90_SECOND_VIEW,ra=b("OffsiteCustomEventType").FUNDRAISER_CREATE,sa=b("OffsiteCustomEventType").MESSENGER_CONNECTED_CALL,ta=b("OffsiteCustomEventType").MESSENGER_MISSED_CALL,ua=b("OffsiteCustomEventType").D2_RETENTION,va=b("OffsiteCustomEventType").D7_RETENTION,wa=b("OffsiteCustomEventType").MOVIE_SHOWTIME_CLICK,xa=b("OffsiteCustomEventType").LISTING_INTERACTION,ya=b("OffsiteCustomEventType").PDP_VIEW;b=b("OffsiteCustomEventType").OTHER;f.job_alert_subscribe=a;f.job_application_create=c;f.job_application_form_impression=d;f.job_browser_impression=e;f.job_opening_detail_view_impression=g;f.activate_app=h;f.complete_registration=i;f.content_view=j;f.onsite_app_content_view=k;f.onsite_web_content_view=l;f.onsite_web_app_content_view=m;f.search=n;f.rate=o;f.tutorial_completion=p;f.contact=q;f.customize_product=r;f.donate=s;f.find_location=t;f.schedule=u;f.start_trial=v;f.submit_application=w;f.subscribe=x;f.visit_location=y;f.ad_click=z;f.ad_impression=A;f.add_to_cart=B;f.onsite_app_add_to_cart=C;f.onsite_web_add_to_cart=D;f.onsite_web_app_add_to_cart=E;f.add_to_wishlist=F;f.initiated_checkout=G;f.add_payment_info=H;f.purchase=I;f.onsite_app_purchase=J;f.onsite_web_purchase=K;f.onsite_web_app_purchase=L;f.message_to_buy=M;f.lead=N;f.level_achieved=O;f.achievement_unlocked=P;f.spent_credits=Q;f.flow_complete=R;f.service_booking_request=S;f.messaging_accept=T;f.messaging_block=U;f.messaging_delete_thread=V;f.messaging_mark_spam=W;f.messaging_reply=X;f.messaging_first_reply=Y;f.messaging_open_thread=Z;f.messaging_ignore_request=$;f.messaging_promotional_off=aa;f.messaging_read_receipt=ba;f.messaging_delivery_receipt=ca;f.messaging_delete_message=da;f.messaging_conversation_started_7d=ea;f.messaging_deep_conversation=fa;f.messaging_automated_flow_complete=ga;f.messaging_automated_flow_cancelled=ha;f.referral_sender_invites_sent=ia;f.referral_sender_message_sent=ja;f.referral_receiver_impression=ka;f.referral_receiver_click=la;f.video_home_selected=ma;f.video_home_watchlist=na;f.video_home_explore=oa;f.video_home_player_start=pa;f.video_home_90_second_view=qa;f.fundraiser_create=ra;f.messenger_connected_call=sa;f.messenger_missed_call=ta;f.d2_retention=ua;f.d7_retention=va;f.movie_showtime_click=wa;f.listing_interaction=xa;f.pdp_view=ya;f.other=b}),null); __d("AdsCampaignRoasValidator.bs",["bs_curry","AdsAppUtils.bs","AdsCampaign.bs","bs_js_primitive","AdsValidators.bs","AdsCampaignGroup.bs","AdsPromotedObject.bs","AdsCampaignValidator.bs","AdsEnum_OptimizationGoal.bs","AdsEnum_OffsiteCustomEventType.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){var c=a[2],d=b("AdsCampaignGroup.bs").getObjective(a[3]),e=b("AdsCampaign.bs").getOptimizationGoal(c);c=b("AdsCampaign.bs").getPromotedObject(c);if(d!==void 0&&e!==void 0&&c!==void 0)return[b("bs_js_primitive").valFromOption(d),b("bs_js_primitive").valFromOption(e),b("bs_js_primitive").valFromOption(c),a[11]]}function c(a,c){__p&&__p();a=a[0];if(c[1]===b("AdsEnum_OptimizationGoal.bs").value){var d=b("AdsPromotedObject.bs").getCustomEventType(c[2]);if(d!==void 0)if(b("bs_js_primitive").valFromOption(d)!==b("AdsEnum_OffsiteCustomEventType.bs").purchase)return b("bs_curry")._3(a,void 0,void 0,32);else return 0;else if(b("AdsAppUtils.bs").isAppObjective(c[0],c[3]))return b("bs_curry")._3(a,void 0,void 0,32);else return b("bs_curry")._3(a,void 0,void 0,33)}else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignRoasValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsReachFrequencyValidation.bs",["AdsArray.bs"],(function(a,b,c,d,e,f){"use strict";function a(a,c){a=b("AdsArray.bs").length(a);return!(a===0||a!==c)}f.isValidCreativeSequence=a}),null); __d("AdsCampaignSequenceValidator.bs",["bs_curry","AdsArray.bs","FBOption.bs","AdsCampaign.bs","AdsValidators.bs","AdsCampaignValidator.bs","AdsReachFrequencyValidation.bs","AdsFrequencyControlEditorUtils.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){a=a[2];return[b("AdsCampaign.bs").getCreativeSequence(a),b("AdsCampaign.bs").getFrequencyControlSpecs(a)]}function g(a){a=a[0];if(a!==void 0)return b("AdsArray.bs").length(a)>0;else return!1}function c(a,c){__p&&__p();if(g(c)){var d=c[0];if(d!==void 0){c=b("FBOption.bs").$$default(0,b("AdsFrequencyControlEditorUtils.bs").getUniformMaxFrequency(c[1]));if(b("AdsReachFrequencyValidation.bs").isValidCreativeSequence(d,c))return 0;else return b("bs_curry")._3(a[0],void 0,void 0,49)}else return 0}else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignSequenceValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsCampaignSponsoredMessageCheckObjectiveValidator.bs",["bs_curry","FBOption.bs","bs_js_primitive","AdsValidators.bs","AdsCampaignGroup.bs","AdsCampaignValidator.bs","AdsSponsoredMessageValidationUtils.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){var c=b("AdsCampaignGroup.bs").getObjective(a[3]);if(c!==void 0)return[b("bs_js_primitive").valFromOption(c),b("FBOption.bs").$$default(!1,a[8]),a[7]]}function c(a,c){if(b("AdsSponsoredMessageValidationUtils.bs").shouldValidateObjective(c[2])&&c[1]&&!b("AdsSponsoredMessageValidationUtils.bs").validateObjective(c[0]))return b("bs_curry")._3(a[0],void 0,void 0,31);else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignSponsoredMessageCheckObjectiveValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsCampaignSuggestedVideoPositionValidator.bs",["bs_curry","AdsUVPaths.bs","AdsAdAccount.bs","bs_js_primitive","AdsValidators.bs","AdsAccountUtils.bs","AdsCampaignValidator.bs","AdsEnum_FacebookPosition.bs","AdsUtils_Placement_Facebook.bs","AdsPlacementEligibilityInformation.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){var c=b("AdsAdAccount.bs").getCapabilities(a[0]);a=b("AdsPlacementEligibilityInformation.bs").getPlacementSpec(a[7]);if(c!==void 0&&a!==void 0)return[c,b("bs_js_primitive").valFromOption(a)]}function c(a,c){if(b("AdsUtils_Placement_Facebook.bs").adsPlacementAPISpecReaderIsActiveFacebookPosition(c[1],b("AdsEnum_FacebookPosition.bs").suggested_video)){var d=b("AdsUtils_Placement_Facebook.bs").adsPlacementAPISpecReaderIsActiveFacebookPosition(c[1],b("AdsEnum_FacebookPosition.bs").feed);if(!d&&!b("AdsAccountUtils.bs").hasCapabilityFromList(c[0],"ALLOW_SUGGESTED_VIDEOS_PLACEMENT_ONLY"))return b("bs_curry")._3(a[0],void 0,b("AdsUVPaths.bs").Campaign[1][3],30);else return 0}else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignSuggestedVideoPositionValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsEnum_DevicePlatform.bs",["AdsAPIDevicePlatform"],(function(a,b,c,d,e,f){"use strict";a=b("AdsAPIDevicePlatform").MOBILE;c=b("AdsAPIDevicePlatform").DESKTOP;d=b("AdsAPIDevicePlatform").CONNECTED_TV;f.mobile=a;f.desktop=c;f.connected_tv=d}),null); __d("AdsUtils_Placement_DevicePlatform.bs",["AdsArray.bs","AdsPlacementSpec.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a,c){a=b("AdsPlacementSpec.bs").getDevicePlatforms(a);if(a!==void 0){a=a;if(b("AdsArray.bs").contains(void 0,c,a))return b("AdsArray.bs").length(a)===1;else return!1}else return!1}function c(a,c){a=b("AdsPlacementSpec.bs").getDevicePlatforms(a);if(a!==void 0)return b("AdsArray.bs").contains(void 0,c,a);else return!1}f.isOnlyActiveDevicePlatform=a;f.isActiveDevicePlatform=c}),null); __d("AdsCampaignVideoBuyingValidator.bs",["bs_curry","AdsArray.bs","AdsUVPaths.bs","AdsCampaign.bs","bs_js_primitive","AdsValidators.bs","AdsAccountUtils.bs","AdsPlacementSpec.bs","AdsCampaignValidator.bs","AdsEnum_DevicePlatform.bs","AdsEnum_OptimizationGoal.bs","AdsUtils_Placement_DevicePlatform.bs","AdsPlacementEligibilityInformation.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();d=[b("AdsEnum_OptimizationGoal.bs").two_second_continuous_video_views,b("AdsEnum_OptimizationGoal.bs").completed_video_views,b("AdsEnum_OptimizationGoal.bs").thruplay];function a(a){var c=b("AdsCampaign.bs").getOptimizationGoal(a[2]);if(c!==void 0)return[b("bs_js_primitive").valFromOption(c),a[7]]}function g(a,c){if(c===b("AdsEnum_OptimizationGoal.bs").two_second_continuous_video_views)return b("bs_curry")._3(a,void 0,b("AdsUVPaths.bs").Campaign[3],26);else if(c===b("AdsEnum_OptimizationGoal.bs").completed_video_views)return b("bs_curry")._3(a,void 0,b("AdsUVPaths.bs").Campaign[3],28);else if(c===b("AdsEnum_OptimizationGoal.bs").thruplay)return b("bs_curry")._3(a,void 0,b("AdsUVPaths.bs").Campaign[3],29);else return 0}function h(a,c){if(c===b("AdsEnum_OptimizationGoal.bs").two_second_continuous_video_views)return b("bs_curry")._3(a,void 0,b("AdsUVPaths.bs").Campaign[3],27);else return 0}function c(a,c){__p&&__p();var d=c[1];c=c[0];a=a[0];var e=b("AdsPlacementEligibilityInformation.bs").getPlacementSpec(d);if(e!==void 0){e=b("bs_js_primitive").valFromOption(e);var f=b("AdsPlacementSpec.bs").getFacebookPositions(e);f=f!==void 0?b("AdsArray.bs").length(f)>0:!1;var i=b("AdsPlacementSpec.bs").getAudienceNetworkPositions(e);i=i!==void 0?b("AdsArray.bs").length(i)>0:!1;var j=b("AdsPlacementSpec.bs").getInstagramPositions(e);j=j!==void 0?b("AdsArray.bs").length(j)>0:!1;var k=b("AdsPlacementSpec.bs").getMessengerPositions(e);k=k!==void 0?b("AdsArray.bs").length(k)>0:!1;i=i||j||k;c===b("AdsEnum_OptimizationGoal.bs").two_second_continuous_video_views&&b("AdsUtils_Placement_DevicePlatform.bs").isOnlyActiveDevicePlatform(e,b("AdsEnum_DevicePlatform.bs").desktop)&&f&&!i?b("AdsAccountUtils.bs").hasCapabilityFromList(b("AdsPlacementEligibilityInformation.bs").getCapabilities(d),"CAN_USE_FB_DESKTOP_IN_MRC_VIDEO_VIEW")||g(a,c):c===b("AdsEnum_OptimizationGoal.bs").two_second_continuous_video_views&&b("AdsUtils_Placement_DevicePlatform.bs").isActiveDevicePlatform(e,b("AdsEnum_DevicePlatform.bs").desktop)&&f&&!b("AdsAccountUtils.bs").hasCapabilityFromList(b("AdsPlacementEligibilityInformation.bs").getCapabilities(d),"CAN_USE_FB_DESKTOP_IN_MRC_VIDEO_VIEW")&&h(a,c);if(!f&&!i)return g(a,c);else return 0}else return 0}e=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignVideoBuyingValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);a=e[0];c=e[1];e=e[2];f.videoOptizationGoals=d;f.meta=a;f.run=c;f.isEligible=e}),null); __d("AdsEnum_WhatsAppPosition.bs",["AdsAPIWhatsAppPosition"],(function(a,b,c,d,e,f){"use strict";a=b("AdsAPIWhatsAppPosition").STATUS;f.status=a}),null); __d("AdsUtils_Placement_WhatsApp.bs",["AdsArray.bs","FBOption.bs","AdsPlacementSpec.bs","AdsEnum_PublisherPlatform.bs","AdsUtils_Placement_PublisherPlatform.bs"],(function(a,b,c,d,e,f){"use strict";function a(a,c){var d=b("AdsUtils_Placement_PublisherPlatform.bs").adsPlacementAPISpecReaderIsActivePublisherPlatform(a,b("AdsEnum_PublisherPlatform.bs").whatsapp);a=b("FBOption.bs").$$default(!1,b("FBOption.bs").map(function(a){return b("AdsArray.bs").contains(void 0,c,a)},b("AdsPlacementSpec.bs").getWhatsAppPositions(a)));if(d)return a;else return!1}f.adsPlacementAPISpecReaderIsActiveWhatsAppPosition=a}),null); __d("AdsCampaignWhatsAppStatusPositionValidator.bs",["bs_curry","AdsUVPaths.bs","bs_js_primitive","AdsValidators.bs","AdsAccountUtils.bs","AdsCampaignValidator.bs","AdsEnum_FacebookPosition.bs","AdsEnum_WhatsAppPosition.bs","AdsEnum_InstagramPosition.bs","AdsUtils_Placement_Facebook.bs","AdsUtils_Placement_WhatsApp.bs","AdsUtils_Placement_Instagram.bs","AdsPlacementEligibilityInformation.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){return b("bs_js_primitive").some(a[7])}function g(a){var c=b("AdsPlacementEligibilityInformation.bs").getCapabilities(a);c=b("AdsAccountUtils.bs").hasCapabilityFromList(c,"CAN_USE_WHATSAPP_STATUS_ADS");a=b("AdsPlacementEligibilityInformation.bs").getPlacementSpec(a);if(a!==void 0&&c)return b("AdsUtils_Placement_WhatsApp.bs").adsPlacementAPISpecReaderIsActiveWhatsAppPosition(b("bs_js_primitive").valFromOption(a),b("AdsEnum_WhatsAppPosition.bs").status);else return!1}function c(a,c){__p&&__p();if(g(c)){var d=b("AdsPlacementEligibilityInformation.bs").getPlacementSpec(c);if(d!==void 0){d=b("bs_js_primitive").valFromOption(d);var e=b("AdsUtils_Placement_Facebook.bs").adsPlacementAPISpecReaderIsActiveFacebookPosition(d,b("AdsEnum_FacebookPosition.bs").feed);d=b("AdsUtils_Placement_Instagram.bs").adsPlacementAPISpecReaderIsActiveInstagramPosition(d,b("AdsEnum_InstagramPosition.bs").story);c=b("AdsAccountUtils.bs").hasCapabilityFromList(b("AdsPlacementEligibilityInformation.bs").getCapabilities(c),"WA_STATUS_ONLY_WHITELIST");if(!c&&!e&&!d)return b("bs_curry")._3(a[0],void 0,b("AdsUVPaths.bs").Campaign[1][7],25);else return 0}else return 0}else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignWhatsAppStatusPositionValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsCampaignWhatsAppValidator.bs",["bs_curry","FBOption.bs","AdsCampaign.bs","bs_js_primitive","AdsValidators.bs","AdsCampaignGroup.bs","AdsEnum_Objective.bs","AdsPromotedObject.bs","AdsCampaignValidator.bs","AdsEnum_PromotedObjectTypes.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){var c=b("AdsCampaign.bs").getPromotedObject(a[2]),d=b("AdsCampaignGroup.bs").getObjective(a[3]);if(c!==void 0&&d!==void 0)return[b("bs_js_primitive").valFromOption(d),b("AdsPromotedObject.bs").getPageID(b("bs_js_primitive").valFromOption(c)),a[11]]}function g(a){if(a[0]===b("AdsEnum_Objective.bs").messages)return a[2]===b("AdsEnum_PromotedObjectTypes.bs").whatsapp;else return!1}function c(a,c){if(g(c)&&b("FBOption.bs").isNone(c[1]))return b("bs_curry")._3(a[0],void 0,void 0,24);else return 0}d=b("bs_curry")._1(b("AdsCampaignValidator.bs").Make,["AdsCampaignWhatsAppValidator",b("AdsValidators.bs").DefaultCampaignValidator[0],a,c]);e=d[0];a=d[1];c=d[2];f.meta=e;f.run=a;f.isEligible=c}),null); __d("AdsCampaignValidatorList.bs",["AdsUVRollout.bs","AdsCampaignAgeValidator.bs","AdsCampaignDealValidator.bs","AdsCampaignNameValidator.bs","AdsCampaignPageValidator.bs","AdsCampaignRoasValidator.bs","AdsCampaignDeletedValidator.bs","AdsCampaignOfferIDValidator.bs","AdsCampaignAppEventValidator.bs","AdsCampaignSequenceValidator.bs","AdsCampaignWhatsAppValidator.bs","AdsCampaignPredictionValidator.bs","AdsCampaignProductSetValidator.bs","AdsCampaignApplicationValidator.bs","AdsCampaignConnectionsValidator.bs","AdsCampaignVideoBuyingValidator.bs","AdsCampaignMaxFrequencyValidator.bs","AdsCampaignAppPermissionValidator.bs","AdsCampaignGroupsPositionValidator.bs","AdsCampaignConversionPixelValidator.bs","AdsCampaignExplorePositionValidator.bs","AdsCampaignReachFrequencyIOValidator.bs","AdsCampaignFrequencyIntervalValidator.bs","AdsCampaignMarketplacePositionValidator.bs","AdsCampaignFacebookStoryPositionValidator.bs","AdsCampaignFacebookSearchPositionValidator.bs","AdsCampaignInstantArticlePositionValidator.bs","AdsCampaignMessengerInboxPositionValidator.bs","AdsCampaignMessengerStoryPositionValidator.bs","AdsCampaignSuggestedVideoPositionValidator.bs","AdsCampaignWhatsAppStatusPositionValidator.bs","AdsCampaignMaxMinSpendLimitConflictValidator.bs","AdsCampaignConversionOfflineEventSetValidator.bs","AdsCampaignCategoryBlockListMigrationValidator.bs","AdsCampaignSponsoredMessageCheckObjectiveValidator.bs","AdsCampaignPartialAutomaticPublisherPlatfromsValidator.bs"],(function(a,b,c,d,e,f){"use strict";c=[b("AdsCampaignAgeValidator.bs").meta,b("AdsCampaignAgeValidator.bs").run,b("AdsCampaignAgeValidator.bs").isEligible];d=[[b("AdsCampaignAppEventValidator.bs").meta,b("AdsCampaignAppEventValidator.bs").run,b("AdsCampaignAppEventValidator.bs").isEligible],[[b("AdsCampaignApplicationValidator.bs").meta,b("AdsCampaignApplicationValidator.bs").run,b("AdsCampaignApplicationValidator.bs").isEligible],[[b("AdsCampaignAppPermissionValidator.bs").meta,b("AdsCampaignAppPermissionValidator.bs").run,b("AdsCampaignAppPermissionValidator.bs").isEligible],[[b("AdsCampaignCategoryBlockListMigrationValidator.bs").meta,b("AdsCampaignCategoryBlockListMigrationValidator.bs").run,b("AdsCampaignCategoryBlockListMigrationValidator.bs").isEligible],[[b("AdsCampaignConnectionsValidator.bs").meta,b("AdsCampaignConnectionsValidator.bs").run,b("AdsCampaignConnectionsValidator.bs").isEligible],[[b("AdsCampaignConversionOfflineEventSetValidator.bs").meta,b("AdsCampaignConversionOfflineEventSetValidator.bs").run,b("AdsCampaignConversionOfflineEventSetValidator.bs").isEligible],[[b("AdsCampaignConversionPixelValidator.bs").meta,b("AdsCampaignConversionPixelValidator.bs").run,b("AdsCampaignConversionPixelValidator.bs").isEligible],[[b("AdsCampaignDealValidator.bs").meta,b("AdsCampaignDealValidator.bs").run,b("AdsCampaignDealValidator.bs").isEligible],[[b("AdsCampaignDeletedValidator.bs").meta,b("AdsCampaignDeletedValidator.bs").run,b("AdsCampaignDeletedValidator.bs").isEligible],[[b("AdsCampaignExplorePositionValidator.bs").meta,b("AdsCampaignExplorePositionValidator.bs").run,b("AdsCampaignExplorePositionValidator.bs").isEligible],[[b("AdsCampaignFacebookSearchPositionValidator.bs").meta,b("AdsCampaignFacebookSearchPositionValidator.bs").run,b("AdsCampaignFacebookSearchPositionValidator.bs").isEligible],[[b("AdsCampaignFacebookStoryPositionValidator.bs").meta,b("AdsCampaignFacebookStoryPositionValidator.bs").run,b("AdsCampaignFacebookStoryPositionValidator.bs").isEligible],[[b("AdsCampaignFrequencyIntervalValidator.bs").meta,b("AdsCampaignFrequencyIntervalValidator.bs").run,b("AdsCampaignFrequencyIntervalValidator.bs").isEligible],[[b("AdsCampaignGroupsPositionValidator.bs").meta,b("AdsCampaignGroupsPositionValidator.bs").run,b("AdsCampaignGroupsPositionValidator.bs").isEligible],[[b("AdsCampaignInstantArticlePositionValidator.bs").meta,b("AdsCampaignInstantArticlePositionValidator.bs").run,b("AdsCampaignInstantArticlePositionValidator.bs").isEligible],[[b("AdsCampaignMarketplacePositionValidator.bs").meta,b("AdsCampaignMarketplacePositionValidator.bs").run,b("AdsCampaignMarketplacePositionValidator.bs").isEligible],[[b("AdsCampaignMaxFrequencyValidator.bs").meta,b("AdsCampaignMaxFrequencyValidator.bs").run,b("AdsCampaignMaxFrequencyValidator.bs").isEligible],[[b("AdsCampaignMaxMinSpendLimitConflictValidator.bs").meta,b("AdsCampaignMaxMinSpendLimitConflictValidator.bs").run,b("AdsCampaignMaxMinSpendLimitConflictValidator.bs").isEligible],[[b("AdsCampaignMessengerInboxPositionValidator.bs").meta,b("AdsCampaignMessengerInboxPositionValidator.bs").run,b("AdsCampaignMessengerInboxPositionValidator.bs").isEligible],[[b("AdsCampaignMessengerStoryPositionValidator.bs").meta,b("AdsCampaignMessengerStoryPositionValidator.bs").run,b("AdsCampaignMessengerStoryPositionValidator.bs").isEligible],[[b("AdsCampaignNameValidator.bs").meta,b("AdsCampaignNameValidator.bs").run,b("AdsCampaignNameValidator.bs").isEligible],[[b("AdsCampaignOfferIDValidator.bs").meta,b("AdsCampaignOfferIDValidator.bs").run,b("AdsCampaignOfferIDValidator.bs").isEligible],[[b("AdsCampaignPageValidator.bs").meta,b("AdsCampaignPageValidator.bs").run,b("AdsCampaignPageValidator.bs").isEligible],[[b("AdsCampaignPartialAutomaticPublisherPlatfromsValidator.bs").meta,b("AdsCampaignPartialAutomaticPublisherPlatfromsValidator.bs").run,b("AdsCampaignPartialAutomaticPublisherPlatfromsValidator.bs").isEligible],[[b("AdsCampaignPredictionValidator.bs").meta,b("AdsCampaignPredictionValidator.bs").run,b("AdsCampaignPredictionValidator.bs").isEligible],[[b("AdsCampaignProductSetValidator.bs").meta,b("AdsCampaignProductSetValidator.bs").run,b("AdsCampaignProductSetValidator.bs").isEligible],[[b("AdsCampaignReachFrequencyIOValidator.bs").meta,b("AdsCampaignReachFrequencyIOValidator.bs").run,b("AdsCampaignReachFrequencyIOValidator.bs").isEligible],[[b("AdsCampaignRoasValidator.bs").meta,b("AdsCampaignRoasValidator.bs").run,b("AdsCampaignRoasValidator.bs").isEligible],[[b("AdsCampaignSequenceValidator.bs").meta,b("AdsCampaignSequenceValidator.bs").run,b("AdsCampaignSequenceValidator.bs").isEligible],[[b("AdsCampaignSponsoredMessageCheckObjectiveValidator.bs").meta,b("AdsCampaignSponsoredMessageCheckObjectiveValidator.bs").run,b("AdsCampaignSponsoredMessageCheckObjectiveValidator.bs").isEligible],[[b("AdsCampaignSuggestedVideoPositionValidator.bs").meta,b("AdsCampaignSuggestedVideoPositionValidator.bs").run,b("AdsCampaignSuggestedVideoPositionValidator.bs").isEligible],[[b("AdsCampaignVideoBuyingValidator.bs").meta,b("AdsCampaignVideoBuyingValidator.bs").run,b("AdsCampaignVideoBuyingValidator.bs").isEligible],[[b("AdsCampaignWhatsAppStatusPositionValidator.bs").meta,b("AdsCampaignWhatsAppStatusPositionValidator.bs").run,b("AdsCampaignWhatsAppStatusPositionValidator.bs").isEligible],[[b("AdsCampaignWhatsAppValidator.bs").meta,b("AdsCampaignWhatsAppValidator.bs").run,b("AdsCampaignWhatsAppValidator.bs").isEligible],0]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]];var g=[c,d];function a(a){return b("AdsUVRollout.bs").filter(function(a){return a[0]},g,a)}f.allValidators=g;f.getValidators=a}),null); __d("AdsPlacementEligibilityInformationCreator.bs",["AdsPlacementEligibilityInformationImpl.bs"],(function(a,b,c,d,e,f){"use strict";function a(a){return a}function c(){return b("AdsPlacementEligibilityInformationImpl.bs").empty}f.create=a;f.createEmpty=c}),null); __d("AdsProfilerMultiProfile",["performanceNow"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(){__p&&__p();function a(a){this.$1=[],this.$2=a}var c=a.prototype;c.measureStart=function(){return b("performanceNow")()};c.measureEnd=function(a,c){this.$1.push({name:a,start:c,end:b("performanceNow")()})};c.finish=function(){this.$2(this.$1)};return a}();e.exports=a}),null); __d("AdsProfilerMultiIntervalProducer",["AdsProfilerEntities","AdsProfilerMultiProfile"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=b("AdsProfilerEntities").AdsProfilerProducer;c=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getProfile=function(a){var c=this.getPropagate();return!c?null:new(b("AdsProfilerMultiProfile"))(function(b){return c({entries:b,context:a})})};return c}(a);e.exports=c}),null); __d("AdsProfilerValidationProducers",["AdsProfilerMultiIntervalProducer"],(function(a,b,c,d,e,f){"use strict";a=new(b("AdsProfilerMultiIntervalProducer"))("JS_VALIDATOR_EXEC");c=new(b("AdsProfilerMultiIntervalProducer"))("REASON_VALIDATOR_EXEC");d={jsValidatorExec:a,reasonValidatorExec:c};f={__reason__:d};e.exports=f}),null); __d("AdsUVProfiler.bs",["FBOption.bs","bs_js_primitive","AdsProfilerValidationProducers"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=[];function a(a){return b("bs_js_primitive").nullable_to_opt(b("AdsProfilerValidationProducers").__reason__.jsValidatorExec.getProfile({storeName:a}))}function c(a){return b("bs_js_primitive").nullable_to_opt(b("AdsProfilerValidationProducers").__reason__.reasonValidatorExec.getProfile({storeName:a}))}function d(a){return b("FBOption.bs").map(function(a){return a.measureStart()},a)}function e(a,c,d){if(c!==void 0&&d!==void 0){b("bs_js_primitive").valFromOption(d).measureEnd(a,b("bs_js_primitive").valFromOption(c));return 0}else return 0}function h(a){b("FBOption.bs").map(function(a){a.finish();return 0},a);return 0}f.Bindings=g;f.getJSProfile=a;f.getReasonProfile=c;f.measureStart=d;f.measureEnd=e;f.finish=h}),null); __d("AdsError.bs",["AdsError","bs_js_null_undefined"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function g(a,c,d){return{field:b("bs_js_null_undefined").fromOption(a),path:b("bs_js_null_undefined").fromOption(c)}}function a(a,c,d){a=g(a,c,0);return b("AdsError").createError(d[0],d[1],a)}function c(a,c,d){a=g(a,c,0);return b("AdsError").createRecommendation(d[0],d[1],a)}function d(a,c,d){a=g(a,c,0);return b("AdsError").createNotice(d[0],d[1],a)}function e(a,c,d){a=g(a,c,0);return b("AdsError").createSuccess(d[0],d[1],a)}function h(a){return a.key}var i=b("AdsError").Level.WARN,j=b("AdsError").Level.RECOMMEND,k=b("AdsError").Level.NOTIFY,l=b("AdsError").Level.SUCCESS;i=[i,j,k,l];f.createError=a;f.createRecommendation=c;f.createNotice=d;f.createSuccess=e;f.getCode=h;f.Level=i}),null); __d("ValidatorTranscripts.bs",["bs_list","AdsError.bs","bs_caml_obj","ErrorCode.bs","bs_js_primitive"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){if(a!==void 0&&b("bs_list").exists(function(a){return a?!0:!1},a[0]))return!0;else return!1}function c(a,c){if(a!==void 0)return b("bs_list").exists(function(a){if(a)return b("bs_caml_obj").caml_equal(a[2],b("ErrorCode.bs").make(c));else return!1},a[0]);else return!1}function d(a){a=a!==void 0?b("bs_list").map(function(a){if(a)return b("bs_js_primitive").some(b("AdsError.bs").createError(a[0],a[1],a[2]))},a[0]):0;return b("bs_list").rev(b("bs_list").fold_left(function(a,c){if(c!==void 0)return[b("bs_js_primitive").valFromOption(c),a];else return a},0,a))}f.hasError=a;f.containsError=c;f.getAdsErrorsFromTranscript=d}),null); __d("AdsValidationHelperUtils.bs",["bs_list","ValidatorTranscripts.bs"],(function(a,b,c,d,e,f){"use strict";function a(a){return b("bs_list").flatten(b("bs_list").map(b("ValidatorTranscripts.bs").getAdsErrorsFromTranscript,a))}f.convertTranscripts=a}),null); __d("ApplicationInfoCreator.bs",["ApplicationInfoImpl.bs"],(function(a,b,c,d,e,f){"use strict";function a(a){return a}function c(){return b("ApplicationInfoImpl.bs").empty}f.create=a;f.createEmpty=c}),null); __d("ContractCreator.bs",["ContractImpl.bs"],(function(a,b,c,d,e,f){"use strict";function a(a){return a}function c(){return b("ContractImpl.bs").empty}f.create=a;f.createEmpty=c}),null); __d("AdsValidationEntryPointJS.bs",["bs_list","bs_array","bs_curry","bs_js_primitive","AdsUVProfiler.bs","ContractCreator.bs","AdsAdgroupCreator.bs","AdsCampaignCreator.bs","AdsAdAccountCreator.bs","ApplicationInfoCreator.bs","AdsAdgroupValidatorList.bs","AdsCampaignGroupCreator.bs","AdsCampaignValidatorList.bs","AdsLoadStateUtils_LEGACY","AdsValidationHelperUtils.bs","AdsCampaignGroupValidatorList.bs","AdsPlacementEligibilityInformationCreator.bs"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function g(a,c,d,e,f,g){var h=b("AdsUVProfiler.bs").measureStart(a);f=b("bs_curry")._1(f,g)?b("bs_curry")._1(d,e):void 0;b("AdsUVProfiler.bs").measureEnd(c,h,a);return f}function a(a,c){var d=b("AdsUVProfiler.bs").getReasonProfile("AdsValidationEntryPointJS:getAdgroupErrors"),e=b("AdsAdAccountCreator.bs").create(a.account),f=b("AdsAdgroupCreator.bs").create(a.adgroup),h=b("AdsCampaignCreator.bs").create(a.campaign),i=b("AdsCampaignGroupCreator.bs").create(a.campaignGroup),j=b("AdsPlacementEligibilityInformationCreator.bs").create(a.eligibilityInfo),k=b("bs_js_primitive").nullable_to_opt(a.isAdgroupNew);a=b("bs_js_primitive").nullable_to_opt(a.post);var l=[f,h,i,j,k,a];f=b("bs_list").map(function(a){return g(d,a[0],a[1],l,a[2],e)},b("AdsAdgroupValidatorList.bs").getValidators(c));h=b("AdsValidationHelperUtils.bs").convertTranscripts(f);b("AdsUVProfiler.bs").finish(d);return b("bs_array").of_list(h)}function c(a,c){__p&&__p();var d=b("AdsUVProfiler.bs").getReasonProfile("AdsValidationEntryPointJS:getCampaignErrors"),e=a.page,f;if(e==null)f=void 0;else{e=b("AdsLoadStateUtils_LEGACY").toLoadObject(e);var h=e.isLoading();f=h?void 0:b("bs_js_primitive").nullable_to_opt(e.getValue())}h=a.applicationInfo;e=h==null?void 0:b("bs_js_primitive").some(b("ApplicationInfoCreator.bs").create(h));h=a.contract;h=h==null?void 0:b("bs_js_primitive").some(b("ContractCreator.bs").create(h));var i=b("AdsAdAccountCreator.bs").create(a.account),j=b("AdsCampaignCreator.bs").create(a.campaign),k=b("AdsCampaignGroupCreator.bs").create(a.campaignGroup),l=a.changedFields,m=b("bs_js_primitive").nullable_to_opt(a.directDeal),n=b("AdsPlacementEligibilityInformationCreator.bs").create(a.eligibilityInfo),o=b("bs_js_primitive").nullable_to_opt(a.isCampaignNew),p=b("AdsCampaignCreator.bs").create(a.originalCampaign);a=a.promotedObjectType;var q=[i,e,j,k,l,h,m,n,o,p,f,a];e=b("bs_list").map(function(a){return g(d,a[0],a[1],q,a[2],i)},b("AdsCampaignValidatorList.bs").getValidators(c));j=b("AdsValidationHelperUtils.bs").convertTranscripts(e);b("AdsUVProfiler.bs").finish(d);return b("bs_array").of_list(j)}function d(a,c){var d=b("AdsUVProfiler.bs").getReasonProfile("AdsValidationEntryPointJS:getCampaignGroupErrors"),e=b("AdsAdAccountCreator.bs").create(a.account),f=b("AdsCampaignGroupCreator.bs").create(a.campaignGroup),h=a.changedFields,i=b("bs_js_primitive").nullable_to_opt(a.isCampaignGroupNew);a=b("AdsCampaignGroupCreator.bs").create(a.originalCampaignGroup);var j=[e,f,h,i,a];f=b("bs_list").map(function(a){return g(d,a[0],a[1],j,a[2],e)},b("AdsCampaignGroupValidatorList.bs").getValidators(c));h=b("AdsValidationHelperUtils.bs").convertTranscripts(f);b("AdsUVProfiler.bs").finish(d);return b("bs_array").of_list(h)}f.runValidator=g;f.getAdgroupErrors=a;f.getCampaignErrors=c;f.getCampaignGroupErrors=d}),null); __d("AdsValidationEntryPointJS.re",["bs_curry","AdsValidationEntryPointJS.bs"],(function(a,b,c,d,e,f){__p&&__p();a=function(a,c){a=b("bs_curry")._2(b("AdsValidationEntryPointJS.bs").getAdgroupErrors,a,c);return a};f.getAdgroupErrors=a;c=function(a,c){a=b("bs_curry")._2(b("AdsValidationEntryPointJS.bs").getCampaignErrors,a,c);return a};f.getCampaignErrors=c;d=function(a,c){a=b("bs_curry")._2(b("AdsValidationEntryPointJS.bs").getCampaignGroupErrors,a,c);return a};f.getCampaignGroupErrors=d}),null); __d("AdsReasonValidationUtils",["AdsObjectTypes","AdsValidationEntryPointJS.re"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=[];function h(a){return b("AdsValidationEntryPointJS.re").getAdgroupErrors(a,null)}function i(a){return b("AdsValidationEntryPointJS.re").getCampaignErrors(a,null)}function j(a){return b("AdsValidationEntryPointJS.re").getCampaignGroupErrors(a,null)}a={getErrorsFromReasonValidations:function(a,c,d){switch(d){case b("AdsObjectTypes").ADGROUP:return h(c);case b("AdsObjectTypes").CAMPAIGN:return i(c);case b("AdsObjectTypes").CAMPAIGN_GROUP:return j(c);default:return g}}};e.exports=a}),null); __d("AdsUVProfiler.re",["bs_curry","AdsUVProfiler.bs"],(function(a,b,c,d,e,f){__p&&__p();a=function(a){a=b("AdsUVProfiler.bs").getJSProfile(a.storeName);return a};f.getJSProfile=a;c=function(a){a=b("AdsUVProfiler.bs").getReasonProfile(a.storeName);return a};f.getReasonProfile=c;d=function(a){a=b("AdsUVProfiler.bs").measureStart(a==null?void 0:a);return a};f.measureStart=d;e=function(a,c,d){a=b("bs_curry")._3(b("AdsUVProfiler.bs").measureEnd,a,c==null?void 0:c,d==null?void 0:d);return a};f.measureEnd=e;a=function(a){a=b("AdsUVProfiler.bs").finish(a==null?void 0:a);return a};f.finish=a}),null); __d("getFieldPaths",[],(function(a,b,c,d,e,f){"use strict";function g(a,b){var c=[],d=b||[];Object.keys(a).forEach(function(e){var b=d.concat(e);a[e]===null||typeof a[e]!=="object"?c.push(b):c=c.concat(g(a[e],b))});return c}e.exports=g}),null); __d("AdsValidationUtils",["errorCode","AdsError","AdsInterfacesLogger","AdsValidationConfig","Random","distinctArray","getByPath","getFieldPaths","gkx","immutable","nullthrows","setByPath"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a={};var h=[],i=new Set(b("AdsValidationConfig").clientOverrideErrorCodes),j=new Set(b("AdsValidationConfig").clientWhitelistErrorCodes),k=new Set(b("AdsValidationConfig").serverSuppressErrorCodes);c=["account","__gk_DO_NOT_USE"];var l=b("gkx")("1015659"),m=new Set();d={prepareData:function(a,c,d){__p&&__p();return a;var e={};b("nullthrows")(c).forEach(function(a){return e[a]={}});d.forEach(function(c){var d=b("getByPath")(a,c,VALUE_NOT_SET);d!==VALUE_NOT_SET&&b("setByPath")(e,c,d)});var f=b("getByPath")(a,GK_PATH);f!==null&&b("setByPath")(e,GK_PATH,f);return e},getValidatorPaths:function(a){a=a.getDependencies();return{fieldPaths:b("getFieldPaths")(a),rootFields:Object.keys(a)}},reconcileClientAndServerErrors:function(a,c,d){__p&&__p();var e=b("Random").random()>=1-b("AdsValidationConfig").getErrorsSamplingRate;if(e){var f;e=b("immutable").Set(c.map(function(a){return a.key}));var g=b("immutable").Set(a.map(function(a){return a.key})),n=e.size+g.size-2*e.intersect(g).size;b("AdsInterfacesLogger").log({eventName:"client_server_validation_discrepancy",data:(f={},f.error_count=n,f.old_value=e,f.new_value=g,f)},b("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP)}if(c.length===0&&!d){n=a.filter(function(a){return i.has(a.key)||a.level===b("AdsError").Level.RECOMMEND});return n.length?n:h}c=c.filter(function(a){return!k.has(a.key)});var o={},p={};a.forEach(function(a){return o[a.key]=a});c.forEach(function(a){return p[a.key]=a});if(p[1487470])return a;d||c.forEach(function(a){o[a.key]?(!p[a.key].path&&b("gkx")("1052151")&&(p[a.key].path=o[a.key].path),l&&(p[a.key].cta=o[a.key].cta),m["delete"](a.key.toString())):m.add(a.key.toString())});e=b("distinctArray")([].concat(Object.keys(o),Object.keys(p).filter(function(a){return!d||m.has(a.toString())})));return e.map(function(a){if(j.has(parseInt(a,10))&&b("gkx")("834538")&&!m.has(a.toString()))return o[a];else if(!d&&p[a]||!o[a])return p[a];else return o[a]})},resetServerOnlyErrors:function(){m.clear()}};e.exports=d}),null); __d("adsCacheFnUtils",["AdsDataAtom","isEmpty"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a,c){var d=new Map(),e=function(){d=new Map()};b("isEmpty")(c)?b("AdsDataAtom").register(e):c.map(function(a){return a.addListener(e)});return function(c){if(!b("AdsDataAtom").isDispatching()&&d.has(c))return d.get(c);d.set(c,a(c));return d.get(c)}};e.exports={adsCreateMultiCachedFn:a}}),null); __d("AdsBaseValidationStore",["errorCode","Promise","requireCond","AdDraftFragmentValidationStatus","AdsAbstractValidator","AdsAMAdvertiserFriendlyErrorsUtils","AdsAsyncValidator","AdsDataAtom","cr:974512","AdsErrorType_DEPRECATED","AdsErrorUtils","AdsInterfacesLogger","AdsInterfacesLoggerUtils","AdsInterfacesScenarioLoggerStore","AdsReasonValidationUtils","AdsUVProfiler.re","AdsUVRollout","AdsValidationConfig","AdsValidationUtils","BatchingQueue","FluxStore","Random","abstractMethod","adsCacheFnUtils","adsCreateStoreThunkSelector","adsDraftGetAdsErrorFromDraftError","adsMemoizeWithArgsByKey","areEqual","getByPath","gkx","immutable","nullthrows","performanceNow","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h=b("adsCacheFnUtils").adsCreateMultiCachedFn,i=b("cr:974512")&&b("cr:974512").toFluxStore(),j=250,k=[],l=[b("AdsErrorType_DEPRECATED").ADGROUP_IMAGE_POLICY_VIOLATION,1885178];function m(a,c,d){__p&&__p();var e=a.filter(function(a){return!l.includes(a.key)});c=c.getValueEnforcing();var f;if(b("gkx")("829575")&&i!=null){var g=i.getState().get(c.fragmentID);f=g==null?void 0:g.active_errors;g=g==null?void 0:g.validation_status}else f=c.activeErrors,g=c.validationStatus;if(g===b("AdDraftFragmentValidationStatus").NEEDS_VALIDATION)return e;else{var h=c.publishError;h==null||b("gkx")("1086031")&&(f||[]).some(function(a){return a.error_code==h.error_code&&a.error_description!==h.error_message})?g=f:g=[h];e=(g||[]).map(function(a){return b("adsDraftGetAdsErrorFromDraftError")(a)});f=a.filter(function(a){return l.includes(a.key)});e=e.concat(f);var j=c.fragmentID;e.forEach(function(a){a.fragmentID=j});g=b("AdsValidationUtils").reconcileClientAndServerErrors(a,e,d);return b("AdsAMAdvertiserFriendlyErrorsUtils").getFriendlyErrors(g)}}a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(c){__p&&__p();var d;d=a.call(this,b("AdsDataAtom"))||this;d.getCombinedErrorsForSelector=b("adsCreateStoreThunkSelector")(babelHelpers.assertThisInitialized(d),d.getCombinedErrorsFor.bind(babelHelpers.assertThisInitialized(d)));d.getCombinedErrorsSelector=b("adsCreateStoreThunkSelector")(babelHelpers.assertThisInitialized(d),d.getCombinedErrors.bind(babelHelpers.assertThisInitialized(d)));d.$AdsBaseValidationStore2=c;d.$AdsBaseValidationStore3=new Map();d.$AdsBaseValidationStore4=new Map();d.$AdsBaseValidationStore5=b("adsMemoizeWithArgsByKey")(m,"AdsBaseValidationStore._getCombinedErrors");d.$AdsBaseValidationStore6=b("immutable").Map();d.$AdsBaseValidationStore7=d.__getValidators();d.$AdsBaseValidationStore8=new Map();d.$AdsBaseValidationStore9=new Map();d.$AdsBaseValidationStore7.forEach(function(a){var c=b("AdsValidationUtils").getValidatorPaths(a),e=c.fieldPaths;c=c.rootFields;d.$AdsBaseValidationStore8.set(a,e)});d.$AdsBaseValidationStore1=new(b("BatchingQueue"))(d.$AdsBaseValidationStore10.bind(babelHelpers.assertThisInitialized(d)),{timeout:j});d.getCombinedErrorsFor=h(d.getCombinedErrorsFor.bind(babelHelpers.assertThisInitialized(d)),[babelHelpers.assertThisInitialized(d)]);d.getErrors=h(d.getErrors.bind(babelHelpers.assertThisInitialized(d)),[babelHelpers.assertThisInitialized(d)]);return d}var d=c.prototype;d.__onDispatch=function(a){if(this.$AdsBaseValidationStore2!=null){a=a.action;switch(a.type){case this.$AdsBaseValidationStore2:a=a.asyncErrors;this.$AdsBaseValidationStore11(a);this.__emitChange();break}}};d.$AdsBaseValidationStore11=function(a){__p&&__p();var c=this;a.forEach(function(a){var d=a.id,e=a.validator;a=a.validatorErrors;var f=b("immutable").List.of(e,d),g=c.$AdsBaseValidationStore3.get(d);if(!c.$AdsBaseValidationStore12(d,e,g))return;c.$AdsBaseValidationStore6=c.$AdsBaseValidationStore6.set(f,a);e=c.$AdsBaseValidationStore13(c.$AdsBaseValidationStore7.map(function(a){return c.$AdsBaseValidationStore6.get(b("immutable").List.of(a,d))||k}));c.$AdsBaseValidationStore4.set(d,e)})};d.$AdsBaseValidationStore10=function(a){b("AdsDataAtom").handleUpdateFromViewAction({type:this.$AdsBaseValidationStore2,asyncErrors:a})};d.getErrorSpec=function(a){a=this.getAllErrors(a);return b("AdsErrorUtils").getErrorSpec(a)};d.indexErrorsByPath=function(a){a=this.getAllErrors(a);return b("AdsErrorUtils").indexErrorsByPath(a)};d.getErrors=function(a){return!this.$AdsBaseValidationStore14(a)?k:this.getErrorsUnconditionally(a)};d.__getValidatorProfiling=function(){return null};d.getErrorsUnconditionally=function(a){__p&&__p();var c=this,d=this.__getData(a);if(d===null||d===void 0)return k;var e=this.$AdsBaseValidationStore3.get(a),f=this.$AdsBaseValidationStore4.get(a);if(f&&e&&this.__areEqual(d,e))return f;e=this.__prepareScenarioLoggerData(1);f=b("Random").random()>=1-b("AdsValidationConfig").getErrorsSamplingRate;var g;e&&f&&(g=b("AdsInterfacesScenarioLoggerStore").scenarioStart("client_side_validation_get_errors"));var h=b("performanceNow")(),i=this.$AdsBaseValidationStore7,j=this.__canUseReasonValidators();j&&(i=i.filter(function(a){return!b("AdsUVRollout").shouldUseReason(a.getName())}));var l=function(f){var g=b("immutable").List.of(f,a),e=c.$AdsBaseValidationStore6.get(g),h=c.$AdsBaseValidationStore15(d,f,a);if(e&&h)return e;h=b("AdsValidationUtils").prepareData(d,c.$AdsBaseValidationStore9.get(f),b("nullthrows")(c.$AdsBaseValidationStore8.get(f)));if(!c.$AdsBaseValidationStore12(a,f,h)){c.$AdsBaseValidationStore6=c.$AdsBaseValidationStore6.set(g,k);return k}return c.$AdsBaseValidationStore16(d,f,a,h,g,e)},m=this.__getValidatorProfiling();i=i.map(function(a){var c=b("AdsUVProfiler.re").measureStart(m),d=l(a);b("AdsUVProfiler.re").measureEnd(a.getName(),c,m);return d});b("AdsUVProfiler.re").finish(m);j=j?b("AdsReasonValidationUtils").getErrorsFromReasonValidations(a,d,this.__getAdsObjectType()):k;g!=null&&e&&b("AdsInterfacesScenarioLoggerStore").scenarioSucceed(g,e);e=b("performanceNow")();if(f){b("AdsInterfacesLogger").log({eventName:"client_error_validation_complete",data:(f={},f.scenario_duration=e-h,f)},b("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP)}e=this.$AdsBaseValidationStore13(i);h=e.concat(j);this.$AdsBaseValidationStore3.set(a,d);this.$AdsBaseValidationStore4.set(a,h);return h};d.getAllErrors=function(a){var b=this;return this.$AdsBaseValidationStore13(a.map(function(a){return b.getErrors(a)}))};d.$AdsBaseValidationStore13=function(a){a=Array.prototype.concat.apply([],a);if(a.length===0)return k;else return a};d.$AdsBaseValidationStore17=function(a,b,c,d){if(!this.$AdsBaseValidationStore15(a,c,b))return;this.$AdsBaseValidationStore1.add({id:b,validator:c,validatorErrors:d})};d.$AdsBaseValidationStore15=function(a,c,d){var e=this.$AdsBaseValidationStore3.get(d);d=b("nullthrows")(this.$AdsBaseValidationStore8.get(c));return!!e&&d.every(function(c){var d=b("getByPath")(e,c,null);c=b("getByPath")(a,c,null);return b("areEqual")(d,c)})};d.$AdsBaseValidationStore16=function(a,c,d,e,f,g){__p&&__p();var h=this;if(c instanceof b("AdsAsyncValidator")){var i=this.$AdsBaseValidationStore18(c,e);b("promiseDone")(i,function(b){h.$AdsBaseValidationStore17(a,d,c,b)});return g||k}else if(c instanceof b("AdsAbstractValidator")){i=this.$AdsBaseValidationStore19(c,e);this.$AdsBaseValidationStore6=this.$AdsBaseValidationStore6.set(f,i);return i}return k};d.getCombinedErrorsFor=function(a){var b=this,c=this.__getDraftFragmentStore();c=c.getFragmentsInDraftFor(a);return c.map(function(a,c){return b.getCombinedErrors(c)}).filter(function(a){return a&&a.length})};d.getCombinedErrors=function(a){var b=this.getErrors(a);if(!this.__shouldUseCombinedValidation())return b;var c=this.__getDraftFragmentStore(),d=c.get(a);c=c.isDirty(a);return this.$AdsBaseValidationStore5(a,b,d,c)};d.getAllCombinedErrors=function(a){var c=this;return b("immutable").Map(a.map(function(a){return[a,c.getCombinedErrors(a)]}))};d.getAllClientErrors=function(a){var c=this;return b("immutable").Map(a.map(function(a){return[a,c.getErrors(a)]}))};d.__getDraftFragmentStore=function(){return b("abstractMethod")("AdsBaseValidationStore","__getDraftFragmentStore")};d.__getValidators=function(){return b("abstractMethod")("AdsBaseValidationStore","__getValidators")};d.__shouldValidate=function(a){return!0};d.$AdsBaseValidationStore14=function(a){try{return this.__shouldValidate(a)}catch(c){b("AdsInterfacesLoggerUtils").logCriticalException(c,{error_type:"VALIDATOR",id:a,source:"_shouldValidateSafe"});return!1}};d.__shouldUseCombinedValidation=function(){return!1};d.__logShouldValidateData=function(a,b,c,d){};d.__shouldValidateData=function(a,b,c){var d=b.shouldValidate(c);this.__logShouldValidateData(a,b,c,d);return d};d.$AdsBaseValidationStore12=function(a,c,d){try{return this.__shouldValidateData(a,c,d)}catch(c){b("AdsInterfacesLoggerUtils").logCriticalException(c,{error_type:"VALIDATOR",id:a,payload_on_error:d,source:"_shouldValidateDataSafe"});return!1}};d.$AdsBaseValidationStore18=function(a,c){try{return a.validate(c)}catch(a){b("AdsInterfacesLoggerUtils").logCriticalException(a,{error_type:"VALIDATOR",payload_on_error:c,source:"_validateSafeAsync"});return b("Promise").reject([])}};d.$AdsBaseValidationStore19=function(a,c){try{return a.validate(c)}catch(a){b("AdsInterfacesLoggerUtils").logCriticalException(a,{error_type:"VALIDATOR",payload_on_error:c,source:"_validateSafeSync"});return k}};d.__getData=function(a){return b("abstractMethod")("AdsBaseValidationStore","__getData")};d.__areEqual=function(a,b){return!1};d.__getAdsObjectType=function(){return b("abstractMethod")("AdsBaseValidationStore","__getAdsObjectType")};d.__canUseReasonValidators=function(){return!1};d.__prepareScenarioLoggerData=function(a){return null};return c}(b("FluxStore"));a.__moduleID=e.id;e.exports=a}),null); __d("AdsAbstractCampaignGroupCrossValidator",["AdsAbstractValidator","abstractMethod"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.shouldValidateCampaignGroup=function(a,c,d){return b("abstractMethod")("AdsAbstractCampaignGroupCrossValidator","shouldValidateCampaignGroup")};return c}(b("AdsAbstractValidator"));e.exports=a}),null); __d("AdsCampaignDerivedUtils",["AdsTimeUtils","DateConsts","unixTimestampFromDate"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a={getRemainingCampaignDurationInDays:function(a){var c=Date.now()/b("DateConsts").MS_PER_SEC,d=a.start_time!=null?b("unixTimestampFromDate")(a.start_time):null;d=d==null||d>=c?d:c;c=a.end_time;c=c!=null?b("unixTimestampFromDate")(c):null;if(d!=null&&c!=null&&c>d)return b("AdsTimeUtils").getDifferenceInDays(d*b("DateConsts").MS_PER_SEC,c*b("DateConsts").MS_PER_SEC);else return 0}};e.exports=a}),null); __d("adsCampaignGetMinSpendTargetPath",["AdsAPICampaignPaths"],(function(a,b,c,d,e,f){"use strict";function a(a){return a==="daily"?b("AdsAPICampaignPaths").DAILY_MIN_SPEND_TARGET:b("AdsAPICampaignPaths").LIFETIME_MIN_SPEND_TARGET}e.exports=a}),null); __d("AdsBudgetValidationUtils",["invariant","AdsAPIBillingEvents","AdsAPIObjectives","AdsAppUtils","AdsBuyingTypes","AdsCampaignBudgetConstants","AdsCampaignDerivedUtils","adsCampaignConvertUSDBudgetToCurrency","adsCampaignGetMinSpendTargetPath","getByPath","isTruthy"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();function a(a,c,d,e,f){var i=e.daily_budget,j=e.lifetime_budget;b("isTruthy")(i)||b("isTruthy")(j)||g(0,5534);j=b("isTruthy")(i)?"daily":"lifetime";return h(a,c,d,e,j,!1,f)}function h(a,c,d,e,f,g,h){__p&&__p();var l=b("AdsCampaignDerivedUtils").getRemainingCampaignDurationInDays(e),m=d.min_daily_budget;d=d.currency;var n=e.bid_amount||0;g=i(a,e.billing_event,g);n=n*g;g=j(a,c,d,e.billing_event,m);nb("AdsBidAdjustmentConfig").MAX_MULTIPLIER||a1?"Pages":"Page",{Pages:"Pages",Page:"Page"}),h._param("conflicting pages",b("intlList")(a.map(function(a){return a.name||a.id})))]),{level:b("AdsError").Level.WARN,path:b("AdsAPICampaignPaths").TARGETING.CONNECTIONS})};return c}(b("AdsAbstractValidator"));c=new a();e.exports=c}),null); __d("AdsCampaignConversionOfflineEventSetValidator",["errorCode","errorDesc","AdsAbstractValidator","AdsAPICampaignGroupPaths","AdsAPICampaignPaths","AdsAPIObjectives","AdsAPIOptimizationGoals","AdsError","AdsPromotedObjectTypes","expandPaths","isFalsey"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getName=function(){return e.id};d.getDependencies=function(){return{campaignGroup:b("expandPaths")([b("AdsAPICampaignGroupPaths").OBJECTIVE]),campaign:b("expandPaths")([b("AdsAPICampaignPaths").PROMOTED_OBJECT.OFFLINE_CONVERSION_DATA_SET_ID,b("AdsAPICampaignPaths").OPTIMIZATION_GOAL]),promotedObjectType:null}};d.shouldValidate=function(a){var c=a.campaignGroup,d=a.campaign;a=a.promotedObjectType;c=c==null?void 0:c.objective;d=d.optimization_goal;return c===b("AdsAPIObjectives").CONVERSIONS&&(d==b("AdsAPIOptimizationGoals").OFFLINE_CONVERSIONS||a===b("AdsPromotedObjectTypes").OFFLINE_EVENT_SET)};d.validate=function(a){a=a.campaign;a=(a=a.promoted_object)==null?void 0:a.offline_conversion_data_set_id;var c=[];b("isFalsey")(a)&&c.push(this.$AdsCampaignConversionOfflineEventSetValidator1());return c};d.$AdsCampaignConversionOfflineEventSetValidator1=function(){return new(b("AdsError"))(1815430,h._(function(a,b){return a._("Please specify a promoted object for the ad set.")},{}),{level:b("AdsError").Level.WARN,field:"offline_conversion_data_set_id",path:b("AdsAPICampaignPaths").PROMOTED_OBJECT.OFFLINE_CONVERSION_DATA_SET_ID})};return c}(b("AdsAbstractValidator"));e.exports=new a()}),null); __d("AdsCampaignConversionPixelValidator",["errorCode","errorDesc","AdsAbstractValidator","AdsAPIAccountPaths","AdsAPICampaignGroupPaths","AdsAPICampaignPaths","AdsAPIObjectives","AdsAPIOptimizationGoals","AdsDeliveryGrowthRepositioningUtils","AdsDeliveryUIConstants","AdsError","AdsErrorsCTAStrings","AdsWebsiteAdUtils","expandPaths","isFalsey"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();var i=b("AdsDeliveryUIConstants").OPTIMZIATION_GOALS_DO_NOT_NEED_CUSTOM_CONVERSION_EVENT;a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getName=function(){return e.id};d.getDependencies=function(){return{account:b("expandPaths")([b("AdsAPIAccountPaths").CAPABILITIES]),campaignGroup:b("expandPaths")([b("AdsAPICampaignGroupPaths").OBJECTIVE]),campaign:b("expandPaths")([b("AdsAPICampaignPaths").PROMOTED_OBJECT.APPLICATION_ID,b("AdsAPICampaignPaths").PROMOTED_OBJECT.CUSTOM_CONVERSION_ID,b("AdsAPICampaignPaths").PROMOTED_OBJECT.PIXEL_ID,b("AdsAPICampaignPaths").OPTIMIZATION_GOAL]),promotedObjectType:null}};d.shouldValidate=function(a){a.account;var c=a.campaignGroup,d=a.campaign;a=a.promotedObjectType;c=c==null?void 0:c.objective;var e=d.optimization_goal;d=(d=d.promoted_object)==null?void 0:d.application_id;var f=b("AdsDeliveryGrowthRepositioningUtils").isInRepositioningGK(c);return f&&c===b("AdsAPIObjectives").CONVERSIONS&&i.includes(e)?!1:b("AdsWebsiteAdUtils").isWebsiteConversionsObjective(c,a)||b("isFalsey")(d)&&b("AdsWebsiteAdUtils").isWebsiteConversionsMessengerObjective(c,a)||(c===b("AdsAPIObjectives").LINK_CLICKS||c===b("AdsAPIObjectives").OFFER_CLAIMS)&&e===b("AdsAPIOptimizationGoals").OFFSITE_CONVERSIONS};d.validate=function(a){var c;a=a.campaign;c=(c=a.promoted_object)==null?void 0:c.pixel_id;a=(a=a.promoted_object)==null?void 0:a.custom_conversion_id;var d=[];b("isFalsey")(c)&&b("isFalsey")(a)&&d.push(this.$AdsCampaignConversionPixelValidator1());return d};d.$AdsCampaignConversionPixelValidator1=function(){return new(b("AdsError"))(1487689,h._(function(a,b){return a._("You must select a conversion event before continuing.")},{}),{cta:b("AdsErrorsCTAStrings").MISSING_CONVERSION_OBJECT_CTA,level:b("AdsError").Level.WARN,field:"pixel_id",path:b("AdsAPICampaignPaths").PROMOTED_OBJECT.PIXEL_ID})};return c}(b("AdsAbstractValidator"));e.exports=new a()}),null); __d("AdsCampaignCustomAudienceValidator",["errorCode","errorDesc","invariant","AdsAbstractValidator","AdsAPICampaignGroupPaths","AdsAPICampaignPaths","AdsAPIObjectives","AdsAudienceBehaviorUtils","AdsAudienceBehaviorWarnings","AdsError","expandPaths","immutable"],(function(a,b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j=b("immutable").List,k=[new(b("AdsError"))(1885402,b("AdsAudienceBehaviorWarnings").getUnsupportedAudienceSpecWarning(),{level:b("AdsError").Level.NOTIFY,path:b("AdsAPICampaignPaths").TARGETING.PRODUCT_AUDIENCE_SPECS})];a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getName=function(){return e.id};d.getDependencies=function(){return{campaign:b("expandPaths")([b("AdsAPICampaignPaths").TARGETING.PRODUCT_AUDIENCE_SPECS,b("AdsAPICampaignPaths").TARGETING.EXCLUDED_PRODUCT_AUDIENCE_SPECS]),campaignGroup:b("expandPaths")([b("AdsAPICampaignGroupPaths").OBJECTIVE])}};d.shouldValidate=function(a){a=a.campaignGroup;return(a==null?void 0:a.objective)===b("AdsAPIObjectives").PRODUCT_CATALOG_SALES};d.validate=function(a){__p&&__p();var c;a=a.campaign;var d=[];c=this.$AdsCampaignCustomAudienceValidator1((c=a.targeting)==null?void 0:c.excluded_product_audience_specs);if(c&&c.length>0&&!b("AdsAudienceBehaviorUtils").isExcludedAudienceSpecEditableInUI(c))return k;a=this.$AdsCampaignCustomAudienceValidator1((c=a.targeting)==null?void 0:c.product_audience_specs);if(!a||a.length===0)return d;if(a&&a.length>1)return k;c=a[0];if(!b("AdsAudienceBehaviorUtils").isAudienceSpecEditableInUI(c))return k;a=c.inclusions||[];c=c.exclusions||[];b("AdsAudienceBehaviorUtils").hasAnyRedundantBehaviorForSupportedEvents(a)&&d.push(new(b("AdsError"))(1713066,h._(function(a,b){return a._("You've added the same event type twice. Please remove the duplicate event type in the inclusions field.")},{event_type:""}),{level:b("AdsError").Level.WARN,path:b("AdsAPICampaignPaths").TARGETING.PRODUCT_AUDIENCE_SPECS}));b("AdsAudienceBehaviorUtils").hasAnyRedundantBehaviorForSupportedEvents(c)&&d.push(new(b("AdsError"))(1713065,h._(function(a,b){return a._("You've added the same event type twice. Please remove the duplicate event type in the exclusions field.")},{event_type:""}),{level:b("AdsError").Level.WARN,path:b("AdsAPICampaignPaths").TARGETING.PRODUCT_AUDIENCE_SPECS}));b("AdsAudienceBehaviorUtils").hasAnyInvalidOverlapForSupportedEvents(a,c)&&d.push(new(b("AdsError"))(1713067,b("AdsAudienceBehaviorWarnings").getInvalidBehaviorOverlapWarning(),{level:b("AdsError").Level.WARN,path:b("AdsAPICampaignPaths").TARGETING.PRODUCT_AUDIENCE_SPECS}));a.concat(c).some(b("AdsAudienceBehaviorUtils").hasInvalidRetention)&&d.push(new(b("AdsError"))(1713022,h._(function(a,b){return a._("Please enter numbers between 1 and 180 in the audience inclusion and exclusion fields.")},{}),{level:b("AdsError").Level.WARN,path:b("AdsAPICampaignPaths").TARGETING.PRODUCT_AUDIENCE_SPECS}));return d};d.$AdsCampaignCustomAudienceValidator1=function(a){__p&&__p();if(!a)return a;if(Array.isArray(a))return a;if(j.isList(a)){a=a.toJS();if(Array.isArray(a))return a}return i(!1,"unexpected product audience specs type")};return c}(b("AdsAbstractValidator"));e.exports=new a()}),null); __d("AdsCampaignDayPartingValidator",["errorCode","errorDesc","AdsAbstractValidator","AdsAPIAccountPaths","AdsAPICampaignGroupPaths","AdsAPICampaignPaths","AdsBuyingTypes","AdsCampaignDerivedUtils","AdsError","DateConsts","DateStrings","DateTime","expandPaths","intlList","unixTimestampFromDate"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getName=function(){return e.id};d.getDependencies=function(){return{account:b("expandPaths")([b("AdsAPIAccountPaths").TIMEZONE_ID]),campaign:b("expandPaths")([b("AdsAPICampaignPaths").ADSET_SCHEDULE,b("AdsAPICampaignPaths").END_TIME,b("AdsAPICampaignPaths").START_TIME]),campaignGroup:b("expandPaths")([b("AdsAPICampaignGroupPaths").BUYING_TYPE])}};d.shouldValidate=function(a){__p&&__p();var c=a.campaign;a=a.campaignGroup;if((a==null?void 0:a.buying_type)===b("AdsBuyingTypes").RESERVED)return!1;a=c.adset_schedule;var d=c.start_time;c=c.end_time;d=d?b("unixTimestampFromDate")(d):null;c=c?b("unixTimestampFromDate")(c):null;return!!a&&d!=null&&c!=null&&d<=c};d.validate=function(a){__p&&__p();var c=a.campaign;a=a.account;var d=c.adset_schedule,e=b("unixTimestampFromDate")(c.start_time),f=b("unixTimestampFromDate")(c.end_time);a=a==null?void 0:a.timezone_id;var g=[];c=b("AdsCampaignDerivedUtils").getRemainingCampaignDurationInDays(c);if(c0){c=c-d;d=c-a.lifetimeBudget;if(d<0)return[new(b("AdsError"))(1885571,h._(function(a,b){return a._("The selected direct deal's budget exceeds account budget limit.")},{}),{level:b("AdsError").Level.WARN,path:b("AdsAPICampaignPaths").TARGETING.FB_DEAL_ID})]}}return[]};return c}(b("AdsAbstractValidator"));e.exports=new a()}),null); __d("AdsCampaignDynamicAdsUpsellCrosssellValidator",["errorCode","errorDesc","AdsAbstractValidator","AdsAPICampaignPaths","AdsDynamicTargetingTypes","AdsError","expandPaths","getByPath","qex"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();var i=new(b("AdsError"))(2016084,h._(function(a,b){return a._("You must use two different product sets to upsell products. To fix this error, go to Upsell Products and choose a different product set.")},{}),{level:b("AdsError").Level.WARN,path:b("AdsAPICampaignPaths").TARGETING.PRODUCT_AUDIENCE_SPECS}),j=new(b("AdsError"))(2016086,h._(function(a,b){return a._("You must use two different product sets to upsell products. To fix this error, go to Upsell Products and choose a product set.")},{}),{level:b("AdsError").Level.WARN,path:b("AdsAPICampaignPaths").TARGETING.PRODUCT_AUDIENCE_SPECS}),k=new(b("AdsError"))(2016087,h._(function(a,b){return a._("You must choose an audience product set to cross-sell products. To fix this error, go to Cross-Sell Products and choose a product set.")},{}),{level:b("AdsError").Level.WARN,path:b("AdsAPICampaignPaths").TARGETING.PRODUCT_AUDIENCE_SPECS});a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getName=function(){return e.id};d.getDependencies=function(){return{campaign:b("expandPaths")([b("AdsAPICampaignPaths").PROMOTED_OBJECT.PRODUCT_SET_ID,b("AdsAPICampaignPaths").TARGETING.PRODUCT_AUDIENCE_SPECS]),cachedDynamicTargetingTypeInUI:null}};d.shouldValidate=function(a){__p&&__p();var c=a.campaign;a=a.cachedDynamicTargetingTypeInUI;if(!b("qex")._("760164"))return!1;c=(c=c.promoted_object)==null?void 0:c.product_set_id;if(c==null)return!1;switch(a){case b("AdsDynamicTargetingTypes").UP_SELL:case b("AdsDynamicTargetingTypes").CROSS_SELL:return!0;default:return!1}};d.validate=function(a){__p&&__p();var c=a.campaign;a=a.cachedDynamicTargetingTypeInUI;var d=b("getByPath")(c,[].concat(b("AdsAPICampaignPaths").TARGETING.PRODUCT_AUDIENCE_SPECS,["0"]));d=d?d.product_set_id:null;if(d==null)switch(a){case b("AdsDynamicTargetingTypes").UP_SELL:return[j];case b("AdsDynamicTargetingTypes").CROSS_SELL:return[k]}c=(c=c.promoted_object)==null?void 0:c.product_set_id;if(c===d)switch(a){case b("AdsDynamicTargetingTypes").UP_SELL:return[i]}return[]};return c}(b("AdsAbstractValidator"));e.exports=new a()}),null); __d("AdsDynamicTargetingPluginType",[],(function(a,b,c,d,e,f){"use strict";e.exports={order:["vertical"]}}),null); __d("DynamicItemsPlural$FbtEnum",[],(function(a,b,c,d,e,f){"use strict";a={automotive_models:"automotive models",bookable:"bookable items",commerce:"products",destinations:"destinations",flights:"flights",home_listings:"home listings",home_service_providers:"home service providers",hotels:"hotels",media_titles:"media titles",ticketed_experiences:"ticketed experiences",vehicle_offers:"vehicle offers",vehicles:"vehicles"};e.exports=a}),null); __d("AdsDynamicTargetingPluginCommon",["fbt","AdsAppUtils","DynamicItemsPlural$FbtEnum","adsAccountGK","gkx"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a={usesProductAudiences:!1,isProspectingEnabled:function(){return!0},isEnabledForObjective:function(a){return b("AdsAppUtils").isAppInstall(a)},forceRetargeting:!1,showBroadAudienceNux:function(){return!1},getRetargetingAudienceDescription:function(a,c){if(!b("gkx")("969392"))return a!=null?g._("Use info from {Catalog Segment Owner's Name} 's pixel or app to create a retargeting audience.",[g._param("Catalog Segment Owner's Name",a)]):g._("Use info from your pixel or app to create a retargeting audience.");if(a!=null)return g._("Use info from {Catalog Segment Owner's Name} 's pixel or app to create a retargeting audience.",[g._param("Catalog Segment Owner's Name",a)]);return b("adsAccountGK")._(c,"1Md6jKNTM")?g._("Retarget ads to people who interacted with your products on and off Facebook."):g._("Use info from your pixel or app to create a retargeting audience.")},getRetargetingAudienceHelpCenterID:function(){return null},getProspectingAudienceDescription:function(a){return!b("adsAccountGK")._(a,"1Md6jKNTM")&&!b("gkx")("969392")?g._({"automotive_models":"Define a broad audience and let Facebook optimize who sees your automotive models.","bookable":"Define a broad audience and let Facebook optimize who sees your bookable items.","commerce":"Define a broad audience and let Facebook optimize who sees your products.","destinations":"Define a broad audience and let Facebook optimize who sees your destinations.","flights":"Define a broad audience and let Facebook optimize who sees your flights.","home_listings":"Define a broad audience and let Facebook optimize who sees your home listings.","home_service_providers":"Define a broad audience and let Facebook optimize who sees your home service providers.","hotels":"Define a broad audience and let Facebook optimize who sees your hotels.","media_titles":"Define a broad audience and let Facebook optimize who sees your media titles.","ticketed_experiences":"Define a broad audience and let Facebook optimize who sees your ticketed experiences.","vehicle_offers":"Define a broad audience and let Facebook optimize who sees your vehicle offers.","vehicles":"Define a broad audience and let Facebook optimize who sees your vehicles."},[g._enum(this.pivots.vertical,b("DynamicItemsPlural$FbtEnum"))]):g._("Find prospective customers even if they haven't interacted with your business.")},getProspectingAudienceHelpCenterID:function(){return"217321262031259"}};e.exports=a}),null); __d("AdsDynamicAutomotiveModelsTargetingPlugin",["AdsDynamicTargetingPluginCommon","CatalogVertical"],(function(a,b,c,d,e,f){"use strict";a=babelHelpers["extends"]({},b("AdsDynamicTargetingPluginCommon"),{type:"dynamic_ads/targeting",key:"automotive_models",pivots:{vertical:b("CatalogVertical").AUTOMOTIVE_MODELS},isProspectingEnabled:function(){return!1}});e.exports=a}),null); __d("AdsDynamicCommerceTargetingPlugin",["fbt","AdsAPIObjectives","AdsAppUtils","AdsDynamicTargetingPluginCommon","CatalogVertical","adsAccountGK"],(function(a,b,c,d,e,f,g){"use strict";a=babelHelpers["extends"]({},b("AdsDynamicTargetingPluginCommon"),{type:"dynamic_ads/targeting",key:"commerce",pivots:{vertical:b("CatalogVertical").COMMERCE},usesProductAudiences:!0,isEnabledForObjective:function(a){return b("AdsAppUtils").isAppInstall(a)||a===b("AdsAPIObjectives").LEAD_GENERATION},getProspectingAudienceDescription:function(a){return b("adsAccountGK")._(a,"1Md6jKNTM")?g._("Find prospective customers even if they haven't interacted with your business."):g._("Show relevant products to prospective customers even if they haven't visited your website or app.")},getRetargetingAudienceDescription:function(a,c){return b("adsAccountGK")._(c,"1Md6jKNTM")?a==null?g._("Retarget ads to people who interacted with your products on and off Facebook."):b("AdsDynamicTargetingPluginCommon").getRetargetingAudienceDescription(a,c):a==null?g._("Retarget products to people who visited your website or app."):b("AdsDynamicTargetingPluginCommon").getRetargetingAudienceDescription(a,c)},getRetargetingAudienceHelpCenterID:function(){return"144576119557578"}});e.exports=a}),null); __d("AdsDynamicDefaultTargetingPlugin",["AdsDynamicTargetingPluginCommon"],(function(a,b,c,d,e,f){"use strict";a=babelHelpers["extends"]({},b("AdsDynamicTargetingPluginCommon"),{type:"dynamic_ads/targeting",key:"default",pivots:{},isProspectingEnabled:function(){return!1},isEnabledForObjective:function(a){return!1}});e.exports=a}),null); __d("AdsDynamicProspectingStrings",["fbt"],(function(a,b,c,d,e,f,g){"use strict";a=g._("Find more prospective customers by showing your ads to people planning a trip.");b={TRAVEL_PROSPECTING_DESCRIPTION:a};e.exports=b}),null); __d("AdsDynamicDestinationsTargetingPlugin",["AdsAPIObjectives","AdsAppUtils","AdsDynamicProspectingStrings","AdsDynamicTargetingPluginCommon","CatalogVertical","adsAccountGK"],(function(a,b,c,d,e,f){"use strict";a=babelHelpers["extends"]({},b("AdsDynamicTargetingPluginCommon"),{type:"dynamic_ads/targeting",key:"destinations",pivots:{vertical:b("CatalogVertical").DESTINATIONS},isProspectingEnabled:function(a){return b("adsAccountGK")._(a,"8CPtAtxZy")},isEnabledForObjective:function(a){return b("AdsAppUtils").isAppInstall(a)||a===b("AdsAPIObjectives").LEAD_GENERATION},getProspectingAudienceDescription:function(){return b("AdsDynamicProspectingStrings").TRAVEL_PROSPECTING_DESCRIPTION}});e.exports=a}),null); __d("AdsDynamicFlightsTargetingPlugin",["AdsAPIObjectives","AdsAppUtils","AdsDynamicProspectingStrings","AdsDynamicTargetingPluginCommon","CatalogVertical"],(function(a,b,c,d,e,f){"use strict";a=babelHelpers["extends"]({},b("AdsDynamicTargetingPluginCommon"),{type:"dynamic_ads/targeting",key:"flights",pivots:{vertical:b("CatalogVertical").FLIGHTS},isEnabledForObjective:function(a){return b("AdsAppUtils").isAppInstall(a)||a===b("AdsAPIObjectives").LEAD_GENERATION},forceRetargeting:!0,getProspectingAudienceDescription:function(){return b("AdsDynamicProspectingStrings").TRAVEL_PROSPECTING_DESCRIPTION}});e.exports=a}),null); __d("AdsDynamicHomeListingsTargetingPlugin",["AdsAPIObjectives","AdsDynamicTargetingPluginCommon","CatalogVertical"],(function(a,b,c,d,e,f){"use strict";a=babelHelpers["extends"]({},b("AdsDynamicTargetingPluginCommon"),{type:"dynamic_ads/targeting",key:"home_listings",pivots:{vertical:b("CatalogVertical").HOME_LISTINGS},isProspectingEnabled:function(){return!1},isEnabledForObjective:function(a){return a===b("AdsAPIObjectives").LEAD_GENERATION}});e.exports=a}),null); __d("AdsDynamicHotelsTargetingPlugin",["AdsAPIObjectives","AdsAppUtils","AdsDynamicProspectingStrings","AdsDynamicTargetingPluginCommon","CatalogVertical"],(function(a,b,c,d,e,f){"use strict";a=babelHelpers["extends"]({},b("AdsDynamicTargetingPluginCommon"),{type:"dynamic_ads/targeting",key:"hotels",pivots:{vertical:b("CatalogVertical").HOTELS},showBroadAudienceNux:function(){return!0},getProspectingAudienceDescription:function(){return b("AdsDynamicProspectingStrings").TRAVEL_PROSPECTING_DESCRIPTION},isEnabledForObjective:function(a){return b("AdsAppUtils").isAppInstall(a)||a===b("AdsAPIObjectives").LEAD_GENERATION}});e.exports=a}),null); __d("AdsDynamicMediaTitlesTargetingPlugin",["AdsDynamicTargetingPluginCommon","CatalogVertical"],(function(a,b,c,d,e,f){"use strict";a=babelHelpers["extends"]({},b("AdsDynamicTargetingPluginCommon"),{type:"dynamic_ads/targeting",key:"media_titles",pivots:{vertical:b("CatalogVertical").MEDIA_TITLES}});e.exports=a}),null); __d("AdsDynamicVehicleOffersTargetingPlugin",["AdsAPIObjectives","AdsAppUtils","AdsDynamicTargetingPluginCommon","CatalogVertical","adsAccountGK"],(function(a,b,c,d,e,f){"use strict";a=babelHelpers["extends"]({},b("AdsDynamicTargetingPluginCommon"),{type:"dynamic_ads/targeting",key:"vehicle_offers",pivots:{vertical:b("CatalogVertical").VEHICLE_OFFERS},isProspectingEnabled:function(a){return b("adsAccountGK")._(a,"2esJ0UoQo")},isEnabledForObjective:function(a){return b("AdsAppUtils").isAppInstall(a)||a===b("AdsAPIObjectives").LEAD_GENERATION}});e.exports=a}),null); __d("AdsDynamicVehiclesTargetingPlugin",["AdsAPIObjectives","AdsAppUtils","AdsDynamicTargetingPluginCommon","CatalogVertical","adsAccountGK"],(function(a,b,c,d,e,f){"use strict";a=babelHelpers["extends"]({},b("AdsDynamicTargetingPluginCommon"),{type:"dynamic_ads/targeting",key:"vehicles",pivots:{vertical:b("CatalogVertical").VEHICLES},isProspectingEnabled:function(a){return b("adsAccountGK")._(a,"8qt0xW6Wo")},isEnabledForObjective:function(a){return b("AdsAppUtils").isAppInstall(a)||a===b("AdsAPIObjectives").LEAD_GENERATION}});e.exports=a}),null); __d("AdsDynamicTargetingPlugins",["adsPluginsFactory","AdsDynamicAutomotiveModelsTargetingPlugin","AdsDynamicCommerceTargetingPlugin","AdsDynamicDefaultTargetingPlugin","AdsDynamicDestinationsTargetingPlugin","AdsDynamicFlightsTargetingPlugin","AdsDynamicHomeListingsTargetingPlugin","AdsDynamicHotelsTargetingPlugin","AdsDynamicMediaTitlesTargetingPlugin","AdsDynamicVehicleOffersTargetingPlugin","AdsDynamicVehiclesTargetingPlugin"],(function(a,b,c,d,e,f){"use strict";a=b("adsPluginsFactory")(function(){return[b("AdsDynamicAutomotiveModelsTargetingPlugin"),b("AdsDynamicCommerceTargetingPlugin"),b("AdsDynamicDefaultTargetingPlugin"),b("AdsDynamicDestinationsTargetingPlugin"),b("AdsDynamicFlightsTargetingPlugin"),b("AdsDynamicHomeListingsTargetingPlugin"),b("AdsDynamicHotelsTargetingPlugin"),b("AdsDynamicMediaTitlesTargetingPlugin"),b("AdsDynamicVehicleOffersTargetingPlugin"),b("AdsDynamicVehiclesTargetingPlugin")]},function(){});e.exports=a}),null); __d("AdsDynamicTargetingPluginResolver",["AdsDynamicTargetingPluginType","adsPluginResolverFactory","AdsDynamicTargetingPlugins"],(function(a,b,c,d,e,f){"use strict";a=b("AdsDynamicTargetingPluginType").order;c=b("adsPluginResolverFactory")(function(){return b("AdsDynamicTargetingPlugins").getArray()},a);e.exports=c}),null); __d("AdsCampaignDynamicAudienceValidator",["errorCode","errorDesc","invariant","AdsAbstractValidator","AdsAPIAccountPaths","AdsAPICampaignPaths","AdsCFNewCampaignFBID","AdsDynamicCampaignUtils","AdsDynamicTargetingCategories","AdsDynamicTargetingPluginResolver","AdsError","expandPaths","gkx"],(function(a,b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j=new(b("AdsError"))(1885531,h._(function(a,b){return a._("Please save your audience. Your ads cannot be shown unless your audience is saved.")},{}),{level:b("AdsError").Level.WARN,path:b("AdsAPICampaignPaths").TARGETING.DYNAMIC_AUDIENCE_IDS});a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getName=function(){return e.id};d.getDependencies=function(){return{account:b("expandPaths")([b("AdsAPIAccountPaths").CAPABILITIES]),campaign:b("expandPaths")([b("AdsAPICampaignPaths").ID,b("AdsAPICampaignPaths").TARGETING.DYNAMIC_AUDIENCE_IDS]),dynamicAdsTargetingCategory:null,promotedProductSetVertical:null}};d.shouldValidate=function(a){var c=a.campaign;a=a.promotedProductSetVertical;return!b("gkx")("1053186")&&b("AdsDynamicCampaignUtils").isDynamicAudienceVertical(a)&&!(!c.id||c.id.includes(b("AdsCFNewCampaignFBID")))};d.validate=function(a){var c=a.account,d=a.campaign,e=a.dynamicAdsTargetingCategory;a=a.promotedProductSetVertical;a||i(0,3576);d=(d=d.targeting)==null?void 0:d.dynamic_audience_ids;d=!!d&&d.length>0;if(d)return[];d=b("AdsDynamicTargetingPluginResolver").resolve({vertical:a});return c!=null&&d.isProspectingEnabled(c)&&e===b("AdsDynamicTargetingCategories").PROSPECTING?[]:[j]};return c}(b("AdsAbstractValidator"));e.exports=new a()}),null); __d("AdsCampaignFrequencyIntervalValidator",["errorCode","errorDesc","AdsAbstractValidator","AdsAccountUtils","AdsAPIAccountPaths","AdsAPICampaignGroupPaths","AdsAPICampaignPaths","AdsAPIObjectives","AdsAPIOptimizationGoals","AdsBuyingTypes","AdsError","AdsFrequencyControlEditorConstants","AdsFrequencyControlEditorUtils","AdsReachFrequencyUtils","DateTime","expandPaths","nullthrows"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();var i=1,j=[],k=[new(b("AdsError"))(2343002,h._(function(a,b){return a._("The value must be a whole number of days between {min_days} and {max_days}.",[a._param("min_days",b.min_days),a._param("max_days",b.max_days)])},{min_days:b("AdsFrequencyControlEditorConstants").MIN_INTERVAL_DAYS,max_days:b("AdsFrequencyControlEditorConstants").MAX_INTERVAL_DAYS}),{level:b("AdsError").Level.WARN,path:[].concat(b("AdsAPICampaignPaths").FREQUENCY_CONTROL_SPECS,[b("AdsFrequencyControlEditorConstants").ERROR_PATH_FOR_INTERVAL])})],l=[new(b("AdsError"))(2343001,h._(function(a,b){return a._("Please edit the frequency interval so it doesn't exceed the length of your ad set.")},{}),{level:b("AdsError").Level.WARN,path:[].concat(b("AdsAPICampaignPaths").FREQUENCY_CONTROL_SPECS,[b("AdsFrequencyControlEditorConstants").ERROR_PATH_FOR_INTERVAL])})],m=[new(b("AdsError"))(1815916,h._(function(a,b){return a._("This objective and optimization goal combination is unable to support frequency control. Frequency control is currently only supported with the following objective and optimization goal combinations: Reach objective with Reach optimization goal, Brand Awareness objective with Ad Recall Lift optimization goal, PPE objective with PPE optimization goal and Video Views objective with Video Views or 2 Second Video Views optimization goal. Please change your objective or optimization goal.")},{}),{level:b("AdsError").Level.WARN,path:[b("AdsAPICampaignPaths").FREQUENCY_CONTROL_SPECS]})];function n(a,b,c){return a!=null&&a<=Math.max(b,c)}function o(a){return a!=null&&a>=b("AdsFrequencyControlEditorConstants").MIN_INTERVAL_DAYS&&a<=b("AdsFrequencyControlEditorConstants").MAX_INTERVAL_DAYS}a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getName=function(){return e.id};d.getDependencies=function(){return{account:b("expandPaths")([b("AdsAPIAccountPaths").TIMEZONE_ID,b("AdsAPIAccountPaths").CAPABILITIES]),campaign:b("expandPaths")([b("AdsAPICampaignPaths").FREQUENCY_CONTROL_SPECS,b("AdsAPICampaignPaths").END_TIME,b("AdsAPICampaignPaths").OPTIMIZATION_GOAL,b("AdsAPICampaignPaths").START_TIME]),campaignGroup:b("expandPaths")([b("AdsAPICampaignGroupPaths").OBJECTIVE])}};d.shouldValidate=function(a){a=a.campaign;a=a.frequency_control_specs;return!!(a&&a.length)};d.validate=function(a){__p&&__p();var c=a.account,d=a.campaign;a=a.campaignGroup;if((a==null?void 0:a.buying_type)!==b("AdsBuyingTypes").AUCTION)return j;var e=d.frequency_control_specs;e=b("nullthrows")(e)[0].interval_days;if(!o(e))return k;var f=c==null?void 0:c.capabilities;f=b("AdsAccountUtils").hasCapabilityFromList(f,"CAN_USE_FREQUENCY_CONTROLS_FOR_AUCTION_GK");if(f){f=(a==null?void 0:a.objective)||b("AdsAPIObjectives").NONE;a=d.optimization_goal;if(!this.$AdsCampaignFrequencyIntervalValidator1(f,a))return m;f=(c==null?void 0:c.timezone_id)||i;c=d.start_time;d=d.end_time;if(!!c&&!!d){c=b("DateTime").fromISOString(c,f).toDate();d=b("DateTime").fromISOString(d,f).toDate();f=b("AdsReachFrequencyUtils").getDaysBetween(c,d);c=b("AdsFrequencyControlEditorUtils").getMinimumDefaultInterval(a);if(f&&!n(e,f,c))return l}}return j};d.$AdsCampaignFrequencyIntervalValidator1=function(a,c){if(!c)return!1;switch(a){case b("AdsAPIObjectives").REACH:return c===b("AdsAPIOptimizationGoals").REACH;case b("AdsAPIObjectives").BRAND_AWARENESS:return c===b("AdsAPIOptimizationGoals").REACH||c===b("AdsAPIOptimizationGoals").BRAND_AWARENESS||c===b("AdsAPIOptimizationGoals").AD_RECALL_LIFT;case b("AdsAPIObjectives").POST_ENGAGEMENT:return c===b("AdsAPIOptimizationGoals").POST_ENGAGEMENT;case b("AdsAPIObjectives").VIDEO_VIEWS:return c===b("AdsAPIOptimizationGoals").VIDEO_VIEWS||c===b("AdsAPIOptimizationGoals").TWO_SECOND_CONTINUOUS_VIDEO_VIEWS||c===b("AdsAPIOptimizationGoals").THRUPLAY}return!1};return c}(b("AdsAbstractValidator"));e.exports=new a()}),null); __d("XLowAudienceSizeController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/ajax/targeting/low_audience_size/",{audience_id:{type:"FBID",required:!0},no_of_rows_being_removed:{type:"Int",required:!0}})}),null); __d("CustomAudienceUtils",["Promise","AdsGraphAPI","WeightedLookalikeConfig","XLowAudienceSizeController","promiseAsyncRequest","promiseDone"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=100,h={DEFAULT_NAME:"Untitled",canCauseLowSizeAudience:function(a,c){a=b("XLowAudienceSizeController").getURIBuilder().setFBID("audience_id",a).setInt("no_of_rows_being_removed",c).getURI();return b("promiseAsyncRequest")(a).then(function(a){return a.payload})},checkRateLimit:function(a){return new(b("Promise"))(function(c,d){b("promiseDone")(b("AdsGraphAPI").get(e.id).adaccount(a).batched().get({fields:["custom_audience_limits"]}),function(a){(!a.custom_audience_limits||!a.custom_audience_limits.data)&&c(a);var b=a.custom_audience_limits.data;b.length===0&&c(a);c(b[0])},function(a){d(a)})})},create:function(a,c,d,f,g){var i={description:f,name:c||h.DEFAULT_NAME,subtype:"CUSTOM"};g!==null&&(i.customer_file_source=g);f=b("WeightedLookalikeConfig").can_account_use_weighted_datafile;f&&d&&(i.is_value_based=!0);return new(b("Promise"))(function(c,d){b("promiseDone")(b("AdsGraphAPI").get(e.id).adaccount(a).edge("customaudiences").post(i),function(a){c(a)},function(a){d(a)})})},getLookalikeContainerName:function(a){__p&&__p();var b,c;b=a==null?void 0:(b=a.lookalike_spec)==null?void 0:b.origin;if(b==null||b.length===0)return null;b=a==null?void 0:(b=a.lookalike_spec)==null?void 0:b.origin[0].name;c=a==null?void 0:(c=a.lookalike_spec)==null?void 0:c.ratio;a=a==null?void 0:(a=a.lookalike_spec)==null?void 0:a.starting_ratio;if(b==null||c==null)return null;return a==null?"Lookalike ("+c*g+"%) - "+b:"Lookalike ("+a*g+"% to "+c*g+"%) - "+b},isBusinessOwnedAdAccount:function(a){return((a=a)!=null?(a=a.business)!=null?a.id:a:a)!=null},isDisabledAdAccount:function(a){return a.account_status===2},isLookalikeContainer:function(a){var b;a=a.audience;return a.lookalike_spec!=null&&(a.lookalike_spec.country==null||((b=a.lookalike_spec)==null?void 0:b.country)==="")&&(a.lookalike_spec.target_countries==null||a.lookalike_spec.target_countries.length===0)},isOwnedByCurrentAccount:function(a,b){return!b||a.owner_account_info!=null&&a.owner_account_info.account_id===b},isUntrustedAdAccount:function(a){return((a=a)!=null?a.is_tier_0:a)===!0},isUntrustedAdAccountForSharing:function(a){var b;b=((b=a)!=null?b.is_tier_0_full:b)===!0;a=((a=a)!=null?a.is_tier_1:a)===!0;return b||a},removeUsers:function(a,c,d){return new(b("Promise"))(function(f,g){b("promiseDone")(b("AdsGraphAPI").get(e.id).object("customaudience",a).edge("users").remove({payload:c,session:d}),function(a){f(a)},function(a){g(a)})})},upload:function(a,c,d){return new(b("Promise"))(function(f,g){b("promiseDone")(b("AdsGraphAPI").get(e.id).object("customaudience",a).edge("users").post({payload:c,session:d}),function(a){f(a)},function(a){g(a)})})}};e.exports=h}),null); __d("AdsCampaignGeoLocationsValidator",["errorCode","errorDesc","fbt","AdsAbstractValidator","AdsAPICampaignGroupPaths","AdsAPICampaignPaths","AdsAPIObjectives","AdsBuyingTypes","AdsComparatorIsMessengerThreadSelected","AdsError","AdsErrorsCTAStrings","AdsErrorType_DEPRECATED","AdsLocalUtils","AdsTargetingConstraints","CustomAudienceUtils","expandPaths","intlNumUtils"],(function(a,b,c,d,e,f,g,h,i){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getName=function(){return e.id};d.getDependencies=function(){return{campaign:b("expandPaths")([b("AdsAPICampaignPaths").SAVED_AUDIENCE.ID,b("AdsAPICampaignPaths").TARGETING.CONNECTIONS,b("AdsAPICampaignPaths").TARGETING.CUSTOM_AUDIENCES,b("AdsAPICampaignPaths").TARGETING.EXCLUDED_CUSTOM_AUDIENCES,b("AdsAPICampaignPaths").TARGETING.PRODUCT_AUDIENCE_SPECS,b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.CITIES,b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.COUNTRIES,b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.COUNTRY_GROUPS,b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.CUSTOM,b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.LOCATION_SET_IDS,b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.MARKET,b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.REGIONS,b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.ELECTORAL_DISTRICTS,b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.POLITICAL_DISTRICTS,b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.LARGE_GEO_AREAS,b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.MEDIUM_GEO_AREAS,b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.SMALL_GEO_AREAS,b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.METRO_AREAS,b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.SUBCITIES,b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.NEIGHBORHOODS,b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.SUBNEIGHBORHOODS,b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.ZIPS,b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.PLACES,b("AdsAPICampaignPaths").TARGETING.PLACE_PAGE_SET_IDS,b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.LOCATION_CLUSTER_IDS]),campaignGroup:b("expandPaths")([b("AdsAPICampaignGroupPaths").BUYING_TYPE,b("AdsAPICampaignGroupPaths").OBJECTIVE]),eligibilityInfo:null}};d.shouldValidate=function(a){var c=a.campaign;a=a.campaignGroup;if((a==null?void 0:a.buying_type)===b("AdsBuyingTypes").RESERVED)return!1;if((a==null?void 0:a.objective)===b("AdsAPIObjectives").STORE_VISITS)return!1;a=(a=c.targeting)==null?void 0:a.place_page_set_ids;return Array.isArray(a)&&a.length>0?!1:!((a=c.saved_audience)==null?void 0:a.id)};d.validate=function(a){__p&&__p();var c=this,d=a.campaign,e=a.campaignGroup;a=a.eligibilityInfo;var f=[],g=this.$AdsCampaignGeoLocationsValidator1(d),h=g.cities,i=g.countries,j=g.country_groups,k=g.customLocations,l=g.geoMarkets,m=g.locationSetIds,n=g.largeGeoAreas,o=g.mediumGeoAreas,p=g.smallGeoAreas,q=g.metroAreas,r=g.subcities,s=g.neighborhoods,t=g.subneighborhoods,u=g.regions,v=g.electoralDistricts,w=g.places,x=g.politicalDistricts,y=g.zips;g=g.locationClusters;d=this.$AdsCampaignGeoLocationsValidator2(d);var z=d.customAudiences,A=d.excludedCustomAudiences;d=d.productAudiences;j=h.length||i.length||j.length||k.length||l.length||m.length||u.length||v.length||w.length||x.length||n.length||o.length||p.length||q.length||r.length||s.length||t.length||g.length||y.length;k=z.length||d.length;l=a&&a.spec&&b("AdsComparatorIsMessengerThreadSelected").isMessengerThreadSelected(a.spec);m=z.concat(A).some(function(a){return b("CustomAudienceUtils").isLookalikeContainer({audience:a})})&&!j;m?f.push(this.$AdsCampaignGeoLocationsValidator3(e)):!j&&(!k||b("AdsLocalUtils").isLocalObjective(e==null?void 0:e.objective))&&!l&&f.push(this.$AdsCampaignGeoLocationsValidator4(e));if(y.length>b("AdsTargetingConstraints").MAX_ZIPS)f.push(this.$AdsCampaignGeoLocationsValidator5(y.length,b("AdsTargetingConstraints").MAX_ZIPS,b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.ZIPS));else if(y.length){v=y.map(function(a){return c.$AdsCampaignGeoLocationsValidator6(a)}).filter(function(a){return!a});v.length>0&&f.push(this.$AdsCampaignGeoLocationsValidator7())}h.length>b("AdsTargetingConstraints").MAX_CITIES&&f.push(this.$AdsCampaignGeoLocationsValidator5(h.length,b("AdsTargetingConstraints").MAX_CITIES,b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.CITIES));u.length>b("AdsTargetingConstraints").MAX_REGIONS&&f.push(this.$AdsCampaignGeoLocationsValidator5(u.length,b("AdsTargetingConstraints").MAX_REGIONS,b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.REGIONS));i.length>b("AdsTargetingConstraints").MAX_COUNTRIES&&f.push(this.$AdsCampaignGeoLocationsValidator5(i.length,b("AdsTargetingConstraints").MAX_COUNTRIES,b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.COUNTRIES));return f};d.$AdsCampaignGeoLocationsValidator6=function(a){return typeof a==="string"?a:a.name||a.key};d.$AdsCampaignGeoLocationsValidator1=function(a){__p&&__p();var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s;b=((b=a.targeting)==null?void 0:(b=b.geo_locations)==null?void 0:b.cities)||[];c=((c=a.targeting)==null?void 0:(c=c.geo_locations)==null?void 0:c.countries)||[];d=((d=a.targeting)==null?void 0:(d=d.geo_locations)==null?void 0:d.country_groups)||[];e=((e=a.targeting)==null?void 0:(e=e.geo_locations)==null?void 0:e.custom_locations)||[];f=((f=a.targeting)==null?void 0:(f=f.geo_locations)==null?void 0:f.geo_markets)||[];g=((g=a.targeting)==null?void 0:(g=g.geo_locations)==null?void 0:g.location_set_ids)||[];h=((h=a.targeting)==null?void 0:(h=h.geo_locations)==null?void 0:h.regions)||[];i=((i=a.targeting)==null?void 0:(i=i.geo_locations)==null?void 0:i.electoral_districts)||[];j=((j=a.targeting)==null?void 0:(j=j.geo_locations)==null?void 0:j.places)||[];k=((k=a.targeting)==null?void 0:(k=k.geo_locations)==null?void 0:k.political_districts)||[];l=((l=a.targeting)==null?void 0:(l=l.geo_locations)==null?void 0:l.large_geo_areas)||[];m=((m=a.targeting)==null?void 0:(m=m.geo_locations)==null?void 0:m.medium_geo_areas)||[];n=((n=a.targeting)==null?void 0:(n=n.geo_locations)==null?void 0:n.small_geo_areas)||[];o=((o=a.targeting)==null?void 0:(o=o.geo_locations)==null?void 0:o.metro_areas)||[];p=((p=a.targeting)==null?void 0:(p=p.geo_locations)==null?void 0:p.subcities)||[];q=((q=a.targeting)==null?void 0:(q=q.geo_locations)==null?void 0:q.neighborhoods)||[];r=((r=a.targeting)==null?void 0:(r=r.geo_locations)==null?void 0:r.subneighborhoods)||[];s=((s=a.targeting)==null?void 0:(s=s.geo_locations)==null?void 0:s.location_cluster_ids)||[];a=((a=a.targeting)==null?void 0:(a=a.geo_locations)==null?void 0:a.zips)||[];return{cities:b,countries:c,country_groups:d,customLocations:e,geoMarkets:f,locationSetIds:g,regions:h,electoralDistricts:i,places:j,politicalDistricts:k,largeGeoAreas:l,mediumGeoAreas:m,smallGeoAreas:n,metroAreas:o,subcities:p,neighborhoods:q,subneighborhoods:r,zips:a,locationClusters:s}};d.$AdsCampaignGeoLocationsValidator2=function(a){var b,c,d;b=((b=a.targeting)==null?void 0:b.connections)||[];c=((c=a.targeting)==null?void 0:c.custom_audiences)||[];d=((d=a.targeting)==null?void 0:d.excluded_custom_audiences)||[];a=((a=a.targeting)==null?void 0:a.product_audience_specs)||[];return{connections:b,customAudiences:c,excludedCustomAudiences:d,productAudiences:a}};d.$AdsCampaignGeoLocationsValidator4=function(a){var c=babelHelpers["extends"]({cta:b("AdsErrorsCTAStrings").UPDATE_TARGETING_URL_CTA,level:b("AdsError").Level.WARN,path:b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.path},{});b("AdsLocalUtils").isLocalObjective(a==null?void 0:a.objective)&&(c.field="targeting");a=h._(function(a,b){return a._("Your audience is missing a location. You can add a location or a Custom Audience.")},{});return new(b("AdsError"))(1885364,a,c)};d.$AdsCampaignGeoLocationsValidator3=function(a){var c=babelHelpers["extends"]({level:b("AdsError").Level.WARN,path:b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.path},{});b("AdsLocalUtils").isLocalObjective(a==null?void 0:a.objective)&&(c.field="targeting");a=h._(function(a,b){return a._("Your audience contains a lookalike that needs a location to populate. Please add a location to continue.")},{});return new(b("AdsError"))(1870072,a,c)};d.$AdsCampaignGeoLocationsValidator7=function(){return new(b("AdsError"))(b("AdsErrorType_DEPRECATED").CAMPAIGN_EMPTY_ZIP_CODES,i._("Some of the ZIP codes provided are invalid. Please remove any empty ZIP codes."),{level:b("AdsError").Level.WARN,path:b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.ZIPS})};d.$AdsCampaignGeoLocationsValidator5=function(a,c,d){var e=d[d.length-1];return new(b("AdsError"))("campaign_too_many_"+e,i._({"*":{"cities":"You can target a maximum of {max count} cities per ad set. You have {count} selected.","countries":"You can target a maximum of {max count} countries per ad set. You have {count} selected.","regions":"You can target a maximum of {max count} regions per ad set. You have {count} selected.","zips":"You can target a maximum of {max count} ZIP codes per ad set. You have {count} selected."}},[i._param("max count",b("intlNumUtils").formatNumberWithThousandDelimiters(c,0),[0,c]),i._enum(e,{cities:"cities",countries:"countries",regions:"regions",zips:"ZIP codes"}),i._param("count",b("intlNumUtils").formatNumberWithThousandDelimiters(a,0))]),{level:b("AdsError").Level.WARN,path:d})};return c}(b("AdsAbstractValidator"));c=new a();e.exports=c}),null); __d("AdsCampaignLeadGenerationTOSValidator",["errorCode","errorDesc","AdsAbstractValidator","AdsAPICampaignGroupPaths","AdsAPICampaignPaths","AdsAPIObjectives","AdsError","expandPaths"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getDependencies=function(){return{campaign:b("expandPaths")([b("AdsAPICampaignPaths").PROMOTED_OBJECT.PAGE_ID]),campaignGroup:b("expandPaths")([b("AdsAPICampaignGroupPaths").OBJECTIVE]),isCampaignNew:null,page:null}};d.shouldValidate=function(a){var c=a.campaign,d=a.campaignGroup,e=a.isCampaignNew;a=a.page;d=(d==null?void 0:d.objective)===b("AdsAPIObjectives").LEAD_GENERATION;c=!!((c=c.promoted_object)==null?void 0:c.page_id);return d&&e===!0&&c&&!!a};d.validate=function(a){a.campaign;a=a.page;return a&&!a.leadgen_tos_accepted?[this.$AdsCampaignLeadGenerationTOSValidator1()]:[]};d.$AdsCampaignLeadGenerationTOSValidator1=function(){return new(b("AdsError"))(1815089,h._(function(a,b){return a._("You can't run lead ads until your Facebook Page accepts Facebook's Lead Generation Terms of Service.")},{}),{level:b("AdsError").Level.WARN,field:"page_id",path:b("AdsAPICampaignPaths").PROMOTED_OBJECT.PAGE_ID})};return c}(b("AdsAbstractValidator"));e.exports=new a()}),null); __d("AdsCampaignMaxFrequencyValidator",["errorCode","errorDesc","AdsAbstractValidator","AdsAccountUtils","AdsAPIAccountPaths","AdsAPICampaignPaths","AdsError","AdsFrequencyControlEditorConstants","expandPaths","nullthrows"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();var i=[],j=[new(b("AdsError"))(2343003,h._(function(a,b){return a._("The maximum frequency must be a whole number of impressions between {min_impressions} and {max_impressions}.",[a._param("min_impressions",b.min_impressions),a._param("max_impressions",b.max_impressions)])},{min_impressions:b("AdsFrequencyControlEditorConstants").MIN_INTERVAL_DAYS,max_impressions:b("AdsFrequencyControlEditorConstants").MAX_INTERVAL_DAYS}),{level:b("AdsError").Level.WARN,path:[].concat(b("AdsAPICampaignPaths").FREQUENCY_CONTROL_SPECS,[b("AdsFrequencyControlEditorConstants").ERROR_PATH_FOR_FREQUENCY])})];function k(a){return a!=null&&a>=b("AdsFrequencyControlEditorConstants").MIN_INTERVAL_DAYS&&a<=b("AdsFrequencyControlEditorConstants").MAX_INTERVAL_DAYS}a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getName=function(){return e.id};d.getDependencies=function(){return{account:b("expandPaths")([b("AdsAPIAccountPaths").CAPABILITIES]),campaign:b("expandPaths")([b("AdsAPICampaignPaths").FREQUENCY_CONTROL_SPECS])}};d.shouldValidate=function(a){a=a.campaign;a=a.frequency_control_specs;return!!(a&&a.length)};d.validate=function(a){var c=a.account;a=a.campaign;c=c==null?void 0:c.capabilities;if(!b("AdsAccountUtils").hasCapabilityFromList(c,"CAN_USE_BRAND_EXTENDED_FREQUENCY_CONTROLS")&&!b("AdsAccountUtils").hasCapabilityFromList(c,"CAN_USE_FREQUENCY_CONTROLS_FOR_AUCTION_GK"))return[];c=a.frequency_control_specs;c=(a=b("nullthrows")(c)[0])==null?void 0:a.max_frequency;return k(c)?i:j};return c}(b("AdsAbstractValidator"));e.exports=new a()}),null); __d("AdsCampaignMaxMinSpendLimitConflictValidator",["AdsAbstractValidator","AdsAPICampaignPaths","AdsCampaignGroupBudgetValidationUtils","expandPaths"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getName=function(){return e.id};d.getDependencies=function(){return{campaign:b("expandPaths")([b("AdsAPICampaignPaths").DAILY_MIN_SPEND_TARGET,b("AdsAPICampaignPaths").DAILY_SPEND_CAP,b("AdsAPICampaignPaths").LIFETIME_MIN_SPEND_TARGET,b("AdsAPICampaignPaths").LIFETIME_SPEND_CAP])}};d.shouldValidate=function(a){a=a.campaign;return+a.daily_min_spend_target>=0&&+a.daily_spend_cap>=0||+a.lifetime_min_spend_target>=0&&+a.lifetime_spend_cap>=0};d.validate=function(a){var c,d=a.campaign;a.campaignGroup;a.eligibilityInfo;a.promotedObjectType;a=(a=d.daily_min_spend_target)!=null?a:d.lifetime_min_spend_target;c=(c=d.daily_spend_cap)!=null?c:d.lifetime_spend_cap;return+a>.9*+c?[b("AdsCampaignGroupBudgetValidationUtils").errors.spendCapConflict]:[]};return c}(b("AdsAbstractValidator"));e.exports=new a()}),null); __d("AdsCampaignMessengerBidAmountValidator",["errorCode","fbt","AdsAbstractValidator","AdsAPIAccountPaths","AdsAPICampaignPaths","AdsComparatorIsMessengerThreadSelected","AdsCurrencyFormatter","AdsError","AdsMessengerBidAmountUtils","expandPaths","isFalsey"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();var i=100;a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getName=function(){return e.id};d.getDependencies=function(){var a=b("expandPaths")([b("AdsAPICampaignPaths").BID_AMOUNT]);return{account:b("expandPaths")([b("AdsAPIAccountPaths").BUSINESS_COUNTRY_CODE,b("AdsAPIAccountPaths").CURRENCY]),campaign:a,eligibilityInfo:null}};d.shouldValidate=function(a){a.campaign;a=a.eligibilityInfo;return!a?!1:b("AdsComparatorIsMessengerThreadSelected").isMessengerThreadSelected(a.spec)};d.validate=function(a){var c=a.account;a=a.campaign;a=a.bid_amount;var d=c==null?void 0:c.currency;c=c==null?void 0:c.business_country_code;c=b("AdsMessengerBidAmountUtils").getMinBidAmount(d,c)+i;return b("isFalsey")(a)||a>=c?[]:[this.$AdsCampaignMessengerBidAmountValidator1(d,c)]};d.$AdsCampaignMessengerBidAmountValidator1=function(a,c){return new(b("AdsError"))(1815817,h._("A minimum bid of {minimum bid amount} is required to use the Messenger placement.",[h._param("minimum bid amount",b("AdsCurrencyFormatter").formatCurrency(a,c))]),{level:b("AdsError").Level.WARN,path:b("AdsAPICampaignPaths").BID_AMOUNT})};return c}(b("AdsAbstractValidator"));e.exports=new a()}),null); __d("AdsCampaignMobileDeviceValidator",["errorCode","errorDesc","AdsAbstractValidator","AdsAPICampaignGroupPaths","AdsAPICampaignPaths","AdsAPIDevicePlatform","AdsBuyingTypes","AdsError","AdsPlacementAPISpecReaderUtils","AdsPlacementUtils","adsPlacementAPISpecReaderIsActivePublisherPlatform","expandPaths"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();var i=b("AdsPlacementAPISpecReaderUtils").isActiveDevicePlatform;a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getName=function(){return e.id};d.getDependencies=function(){return{campaignGroup:b("expandPaths")([b("AdsAPICampaignGroupPaths").BUYING_TYPE,b("AdsAPICampaignGroupPaths").OBJECTIVE]),campaign:b("expandPaths")([]),eligibilityInfo:null,promotedObjectType:null}};d.shouldValidate=function(a){a.campaign;var c=a.campaignGroup;a=a.eligibilityInfo;if(!a)return!1;c=c==null?void 0:c.buying_type;if(c===b("AdsBuyingTypes").RESERVED)return!1;return!a?!1:i(a.spec,b("AdsAPIDevicePlatform").MOBILE)};d.validate=function(a){__p&&__p();a.campaign;var c=a.campaignGroup,d=a.eligibilityInfo;a=a.promotedObjectType;if(!d)return[];var e=[],f=d.spec.user_device||[],g=d.spec.user_os||[],h=[];d=b("adsPlacementAPISpecReaderIsActivePublisherPlatform")(d.spec,"instagram");d&&(h=b("AdsPlacementUtils").getDisabledInstagramOSTypes(c==null?void 0:c.objective,a));d=f.some(function(a){return h.includes(a)})||g.some(function(a){return h.includes(a)});d&&e.push(this.$AdsCampaignMobileDeviceValidator1());return e};d.$AdsCampaignMobileDeviceValidator1=function(){return new(b("AdsError"))(1815294,h._(function(a,b){return a._("Ads with Instagram placement can't target audiences using feature phones.")},{}),{level:b("AdsError").Level.WARN,path:b("AdsAPICampaignPaths").TARGETING.USER_OS})};return c}(b("AdsAbstractValidator"));e.exports=new a()}),null); __d("AdsAbstractWorkerValidator",["AdsAbstractValidator","abstractMethod"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.id=function(){return b("abstractMethod")("AdsAbstractWorkerValidator","id")};d.validateData=function(a){return b("abstractMethod")("AdsAbstractWorkerValidator","validate")};d.getErrors=function(a){return b("abstractMethod")("AdsAbstractWorkerValidator","getErrors")};d.validate=function(a){return this.getErrors(this.validateData(a))};return c}(b("AdsAbstractValidator"));e.exports=a}),null); __d("AdsNameWorkerValidatorUtils",["errorCode","invariant","AdsObjectTypes","AdsValidationConsts","getByPath"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();function i(a){switch(a){case b("AdsObjectTypes").ADGROUP:case b("AdsObjectTypes").CAMPAIGN:case b("AdsObjectTypes").CAMPAIGN_GROUP:return 2061001}return null}a={validate:function(a,c,d){var e=[];a=b("getByPath")(a,c);d=i(d);d||h(0,815);!a?e.push({errorKey:d,path:c}):a.length>b("AdsValidationConsts").maxAdgroupNameLength&&e.push({errorKey:1487045,path:c});return e}};e.exports=a}),null); __d("AdsCampaignNameWorkerValidator",["AdsAbstractWorkerValidator","AdsAPICampaignPaths","AdsNameWorkerValidatorUtils","AdsObjectTypes","expandPaths"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.id=function(){return"AdsCampaignNameWorkerValidator"};d.getDependencies=function(){return{campaign:b("expandPaths")([b("AdsAPICampaignPaths").NAME])}};d.shouldValidate=function(a){return!0};d.validateData=function(a){a=a.campaign;return b("AdsNameWorkerValidatorUtils").validate(a,b("AdsAPICampaignPaths").NAME,b("AdsObjectTypes").CAMPAIGN)};return c}(b("AdsAbstractWorkerValidator"));e.exports=a}),null); __d("AdsNameValidatorUtils",["errorCode","errorDesc","fbt","invariant","AdsError"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();function k(a,b){switch(a){case 1487043:case"ADPRO__MISSING_FRIENDLY_NAME":return{key:1487043,message:h._(function(a,b){return a._("Please enter a name.")},{})};case 2061001:case"ADS_PARAM__NON_EMPTY_STRING":return{key:2061001,message:h._(function(a,b){return a._("This field {field} must be a non-empty string.",[a._param("field",b.field)])},{field:l(b)})};case 1487045:case"ADPRO__FRIENDLY_NAME_TOO_LONG":return{key:1487045,message:h._(function(a,b){return a._("Names of campaigns, ad sets and ads can't be more than 128 characters. Please shorten the name and try again.")},{})};default:a||j(0,5596);return{key:0,message:""}}}function l(a){switch(a){case"campaign":return i._("campaign name");case"ad_set":return i._("ad set name");case"ad":return i._("ad name");default:return i._("name")}}a={getErrors:function(a,c){return a.map(function(a){return new(b("AdsError"))(a.errorKey,k(a.errorKey,c).message,{level:b("AdsError").Level.WARN,path:a.path})})},getErrorDesc:function(a,b){return k(a,b).message}};e.exports=a}),null); __d("AdsCampaignNameValidator",["AdsCampaignNameWorkerValidator","AdsNameValidatorUtils"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getName=function(){return e.id};d.getErrors=function(a){return b("AdsNameValidatorUtils").getErrors(a,"ad_set")};return c}(b("AdsCampaignNameWorkerValidator"));c=new a();e.exports=c}),null); __d("AdsCampaignOfferIDValidator",["errorCode","errorDesc","fbt","AdsAbstractValidator","AdsAPICampaignGroupPaths","AdsAPICampaignPaths","AdsAPIObjectives","AdsAPIOfferPaths","AdsAPIOptimizationGoals","AdsError","AdsLoadStateUtils_LEGACY","ApiPagePaths","expandPaths","getByPath","isFalsey","isTruthy"],(function(a,b,c,d,e,f,g,h,i){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getName=function(){return e.id};d.getDependencies=function(){return{campaign:b("expandPaths")([b("AdsAPICampaignPaths").PROMOTED_OBJECT.OFFER_ID,b("AdsAPICampaignPaths").PROMOTED_OBJECT.PAGE_ID,b("AdsAPICampaignPaths").OPTIMIZATION_GOAL]),campaignGroup:b("expandPaths")([b("AdsAPICampaignGroupPaths").OBJECTIVE]),offerData:b("expandPaths")([b("AdsAPIOfferPaths").PAGE.ID,b("AdsAPIOfferPaths").LOCATION_TYPE]),page:b("expandPaths")([b("ApiPagePaths").OFFER_ELIGIBLE])}};d.shouldValidate=function(a){a=a.campaignGroup;return(a==null?void 0:a.objective)===b("AdsAPIObjectives").OFFER_CLAIMS};d.validate=function(a){__p&&__p();var c=a.campaign,d=a.offerData;a=a.page;var e=[];!!a&&!b("AdsLoadStateUtils_LEGACY").isLoading(a)&&!b("getByPath")(a,b("ApiPagePaths").OFFER_ELIGIBLE)&&e.push(b("AdsError").createError(2006008,h._(function(a,b){return a._("This Page can't create offers right now because it doesn't follow our policies. See https:\/\/www.facebook.com\/page_guidelines.php for details.")},{}),{field:"page_id",level:b("AdsError").Level.WARN,path:b("AdsAPICampaignPaths").PROMOTED_OBJECT.PAGE_ID}));a=(a=c.promoted_object)==null?void 0:a.offer_id;if(b("isFalsey")(a)){e.push(this.$AdsCampaignOfferIDValidator1());return e}if(!d||b("AdsLoadStateUtils_LEGACY").isLoading(d))return e;a=(a=c.promoted_object)==null?void 0:a.page_id;if(b("isTruthy")(a)){var f;f=(f=d.page)==null?void 0:f.id;f&&f!==a&&e.push(this.$AdsCampaignOfferIDValidator2())}f=d.location_type;a=c.optimization_goal;d=a===b("AdsAPIOptimizationGoals").LINK_CLICKS;f==="offline"&&a!==b("AdsAPIOptimizationGoals").POST_ENGAGEMENT&&!d&&e.push(this.$AdsCampaignOfferIDValidator3());return e};d.$AdsCampaignOfferIDValidator3=function(){return new(b("AdsError"))(2006024,h._(function(a,b){return a._("Post Engagement is the only optimization goal available for In Store offers right now.")},{}),{level:b("AdsError").Level.WARN,path:b("AdsAPICampaignPaths").OPTIMIZATION_GOAL})};d.$AdsCampaignOfferIDValidator2=function(){return new(b("AdsError"))(2006026,i._("This offer does not belong to the selected page"),{level:b("AdsError").Level.WARN,path:b("AdsAPICampaignPaths").PROMOTED_OBJECT.PAGE_ID})};d.$AdsCampaignOfferIDValidator1=function(){return new(b("AdsError"))(2006032,h._(function(a,b){return a._("This campaign doesn't have an offer yet. Add one to finish creating your campaign.")},{}),{level:b("AdsError").Level.WARN,path:b("AdsAPICampaignPaths").PROMOTED_OBJECT.OFFER_ID})};return c}(b("AdsAbstractValidator"));e.exports=new a()}),null); __d("AdsCampaignPageValidator",["errorCode","errorDesc","AdsAbstractValidator","AdsAPIAccountPaths","AdsAPICampaignGroupPaths","AdsAPICampaignPaths","AdsAPIObjectives","AdsComparatorIsMessengerThreadSelected","AdsError","AdsErrorsCTAStrings","expandPaths","isFalsey"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();var i=new Set([b("AdsAPIObjectives").PAGE_LIKES,b("AdsAPIObjectives").LEAD_GENERATION,b("AdsAPIObjectives").OFFER_CLAIMS]);a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getName=function(){return e.id};d.getDependencies=function(){var a=b("expandPaths")([b("AdsAPICampaignPaths").PROMOTED_OBJECT.PAGE_ID,b("AdsAPICampaignPaths").PROMOTED_OBJECT.PLACE_PAGE_SET_ID]);return{account:b("expandPaths")([b("AdsAPIAccountPaths").CAPABILITIES]),campaign:a,campaignGroup:b("expandPaths")([b("AdsAPICampaignGroupPaths").OBJECTIVE]),eligibilityInfo:null,isCampaignNew:null}};d.shouldValidate=function(a){a.account;var c=a.campaignGroup,d=a.eligibilityInfo;a=a.isCampaignNew;if(a!==!0||!d)return!1;return b("AdsComparatorIsMessengerThreadSelected").isMessengerThreadSelected(d.spec)?!0:i.has(c==null?void 0:c.objective)};d.validate=function(a){__p&&__p();var c=a.campaign,d=a.eligibilityInfo;a.campaignGroup;a=a.isCampaignNew;if(a!==!0||!d)return[];d=(a=c.promoted_object)==null?void 0:a.page_id;c=(a=c.promoted_object)==null?void 0:a.place_page_set_id;a=[];b("isFalsey")(d)&&b("isFalsey")(c)&&a.push(this.$AdsCampaignPageValidator1());return a};d.$AdsCampaignPageValidator1=function(){var a=b("AdsAPICampaignPaths").PROMOTED_OBJECT.PAGE_ID;return new(b("AdsError"))(2446157,h._(function(a,b){return a._("Please select a page at the \"Ad Set\" level.")},{}),{cta:b("AdsErrorsCTAStrings").MISSING_FACEBOOK_PAGE_CTA,level:b("AdsError").Level.WARN,field:"page_id",path:a})};return c}(b("AdsAbstractValidator"));c=new a();e.exports=c}),null); __d("AdsCampaignPartialAutomaticPublisherPlatfromsValidator",["errorCode","errorDesc","AdsAbstractValidator","AdsAPICampaignPaths","AdsError","AdsPartialAutomaticPlacementUtils","AdsPlacementAPISpecReaderUtils","expandPaths"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();var i=[];a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getName=function(){return e.id};d.getDependencies=function(){return{campaign:b("expandPaths")([b("AdsAPICampaignPaths").TARGETING.path])}};d.shouldValidate=function(){return!0};d.validate=function(a){a=a.campaign;a=b("AdsPartialAutomaticPlacementUtils").getPartialAutomaticPlatformsFromPlacementSpec(b("AdsPlacementAPISpecReaderUtils").convertCampaignToPlacementSpec(a));return a.length===0?i:[new(b("AdsError"))(2446045,h._(function(a,b){return a._("There's an issue with your ad placements. Try using automatic placements, or switch to automatic and then back to edit placements.")},{}),{level:b("AdsError").Level.WARN,path:b("AdsAPICampaignPaths").TARGETING.FACEBOOK_POSITIONS})]};return c}(b("AdsAbstractValidator"));e.exports=new a()}),null); __d("AdsCampaignPlacePageSetValidator",["errorCode","fbt","AdsAbstractValidator","AdsAPIAccountPaths","AdsAPICampaignGroupPaths","AdsAPICampaignPaths","AdsAPIObjectives","AdsError","expandPaths"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getDependencies=function(){return{account:b("expandPaths")([b("AdsAPIAccountPaths").CAPABILITIES]),campaign:b("expandPaths")([b("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.path,b("AdsAPICampaignPaths").TARGETING.PLACE_PAGE_SET_IDS]),campaignGroup:b("expandPaths")([b("AdsAPICampaignGroupPaths").OBJECTIVE])}};d.shouldValidate=function(a){var c=a.campaignGroup,d=a.campaign;a.account;a=c==null?void 0:c.objective;d=(c=d.targeting)==null?void 0:c.geo_locations;c=d!=null&&Object.keys(d).length>0;return!c&&a===b("AdsAPIObjectives").STORE_VISITS};d.validate=function(a){a=a.campaign;a=(a=a.targeting)==null?void 0:a.place_page_set_ids;return a?[]:[this.$AdsCampaignPlacePageSetValidator1()]};d.$AdsCampaignPlacePageSetValidator1=function(){return new(b("AdsError"))(1885447,h._("Please select some business locations to be the targeting of this ad set."),{level:b("AdsError").Level.WARN,field:"targeting",path:b("AdsAPICampaignPaths").TARGETING.PLACE_PAGE_SET_IDS})};return c}(b("AdsAbstractValidator"));e.exports=new a()}),null); __d("AdsCampaignProductSetValidator",["errorCode","errorDesc","fbt","AdsAbstractValidator","AdsAPICampaignGroupPaths","AdsAPICampaignPaths","AdsAPIObjectives","AdsAPIOptimizationGoals","AdsError","AdsPromotedObjectTypes","expandPaths","isFalsey"],(function(a,b,c,d,e,f,g,h,i){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getDependencies=function(){return{campaign:b("expandPaths")([b("AdsAPICampaignPaths").OPTIMIZATION_GOAL,b("AdsAPICampaignPaths").PROMOTED_OBJECT.CUSTOM_EVENT_TYPE,b("AdsAPICampaignPaths").PROMOTED_OBJECT.PRODUCT_SET_ID]),campaignGroup:b("expandPaths")([b("AdsAPICampaignGroupPaths").OBJECTIVE,b("AdsAPICampaignGroupPaths").PROMOTED_OBJECT.PRODUCT_CATALOG_ID]),promotedObjectType:null}};d.shouldValidate=function(a){var c=a.campaignGroup;a=a.promotedObjectType;var d=c==null?void 0:c.objective;c=c==null?void 0:(c=c.promoted_object)==null?void 0:c.product_catalog_id;return d===b("AdsAPIObjectives").STORE_VISITS&&!!c||a===b("AdsPromotedObjectTypes").PRODUCT_SET};d.validate=function(a){var c,d;a=a.campaign;c=(c=a.promoted_object)==null?void 0:c.product_set_id;d=(d=a.promoted_object)==null?void 0:d.custom_event_type;var e=[];b("isFalsey")(c)&&e.push(this.$AdsCampaignProductSetValidator1());!d&&a.optimization_goal===b("AdsAPIOptimizationGoals").OFFSITE_CONVERSIONS&&e.push(this.$AdsCampaignProductSetValidator2());return e};d.$AdsCampaignProductSetValidator1=function(){return new(b("AdsError"))(1885049,i._("Please select or create a Product Set."),{level:b("AdsError").Level.WARN,field:"promoted_object",path:b("AdsAPICampaignPaths").PROMOTED_OBJECT.PRODUCT_SET_ID})};d.$AdsCampaignProductSetValidator2=function(){return new(b("AdsError"))(1885664,h._(function(a,b){return a._("Your ads can't be optimized for conversions unless you select a conversion event")},{}),{level:b("AdsError").Level.WARN,field:"promoted_object",path:b("AdsAPICampaignPaths").PROMOTED_OBJECT.CUSTOM_EVENT_TYPE})};return c}(b("AdsAbstractValidator"));e.exports=new a()}),null); __d("AdsCampaignRoasValidator",["errorCode","errorDesc","AdsAbstractValidator","AdsAPICampaignGroupPaths","AdsAPICampaignPaths","AdsAPIOptimizationGoals","AdsAppUtils","AdsDeliveryOffsiteCustomEventStrings","AdsError","AdsErrorsCTAStrings","adsErrorDesc","expandPaths","gkx"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getName=function(){return e.id};d.getDependencies=function(){return{campaign:b("expandPaths")([b("AdsAPICampaignPaths").OPTIMIZATION_GOAL,b("AdsAPICampaignPaths").PROMOTED_OBJECT.PIXEL_ID,b("AdsAPICampaignPaths").PROMOTED_OBJECT.CUSTOM_EVENT_TYPE]),campaignGroup:b("expandPaths")([b("AdsAPICampaignGroupPaths").OBJECTIVE]),promotedObjectType:null}};d.shouldValidate=function(a){a=a.campaign;return a.optimization_goal===b("AdsAPIOptimizationGoals").VALUE};d.validate=function(a){var c=a.campaign,d=a.campaignGroup;a=a.promotedObjectType;c=(c=c.promoted_object)==null?void 0:c.custom_event_type;if(!c&&!b("AdsAppUtils").isAppObjective(d==null?void 0:d.objective,a))return[this.$AdsCampaignRoasValidator1()];return c!=="PURCHASE"?[this.$AdsCampaignRoasValidator2(c)]:[]};d.$AdsCampaignRoasValidator2=function(a){return new(b("AdsError"))(1885662,b("gkx")("1086031")?b("adsErrorDesc")._(function(a,b){return a._("The pixel conversion event you selected ({ineligible_offsite_custom_event}) can't be used with value optimization. Please select the purchase conversion event.",[a._param("ineligible_offsite_custom_event",b.ineligible_offsite_custom_event)])},{ineligible_offsite_custom_event:b("AdsDeliveryOffsiteCustomEventStrings")[a]}):h._(function(a,b){return a._("The pixel conversion event you selected ({ineligible_offsite_custom_event}) can't be used with value optimization. Please select the purchase conversion event.",[a._param("ineligible_offsite_custom_event",b.ineligible_offsite_custom_event)])},{ineligible_offsite_custom_event:b("AdsDeliveryOffsiteCustomEventStrings")[a]}),{cta:b("AdsErrorsCTAStrings").INVALID_CONVERSION_EVENT_CTA,level:b("AdsError").Level.WARN,path:b("AdsAPICampaignPaths").PROMOTED_OBJECT.CUSTOM_EVENT_TYPE})};d.$AdsCampaignRoasValidator1=function(){return new(b("AdsError"))(1487689,h._(function(a,b){return a._("You must select a conversion event before continuing.")},{}),{cta:b("AdsErrorsCTAStrings").MISSING_CONVERSION_OBJECT_CTA,level:b("AdsError").Level.WARN,path:b("AdsAPICampaignPaths").PROMOTED_OBJECT.PIXEL_ID})};return c}(b("AdsAbstractValidator"));e.exports=new a()}),null); __d("AdsSponsoredMessageValidationUtils",["errorCode","errorDesc","AdsAPIObjectives","AdsComparatorIsMessengerThreadSelected","AdsError"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();a={shouldValidateObjective:function(a,c){if(!a)return!1;a=c&&c.spec&&b("AdsComparatorIsMessengerThreadSelected").isMessengerThreadSelected(c.spec);return!!a},validateObjective:function(a){var c=[];(a==null?void 0:a.objective)!==b("AdsAPIObjectives").MESSAGES&&c.push(this.getInvalidObjectiveError());return c},getInvalidObjectiveError:function(){return new(b("AdsError"))(1815767,h._(function(a,b){return a._("Sponsored messages can only be created under the Messages campaign objective. Please create a new campaign with the Messages objective.")},{}),{level:b("AdsError").Level.WARN})}};e.exports=a}),null); __d("AdsCampaignSponsoredMessageCheckObjectiveValidator",["AdsAbstractValidator","AdsAPIAccountPaths","AdsAPICampaignGroupPaths","AdsAPICampaignPaths","AdsSponsoredMessageValidationUtils","expandPaths"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getName=function(){return e.id};d.getDependencies=function(){var a=b("expandPaths")([b("AdsAPICampaignPaths").PROMOTED_OBJECT.PAGE_ID]);return{account:b("expandPaths")([b("AdsAPIAccountPaths").CAPABILITIES]),campaign:a,campaignGroup:b("expandPaths")([b("AdsAPICampaignGroupPaths").OBJECTIVE]),eligibilityInfo:null,isCampaignNew:null}};d.shouldValidate=function(a){var c=a.account,d=a.eligibilityInfo;a=a.isCampaignNew;return a!==!0?!1:b("AdsSponsoredMessageValidationUtils").shouldValidateObjective(c,d)};d.validate=function(a){a.campaign;a.eligibilityInfo;var c=a.campaignGroup;a=a.isCampaignNew;return a!==!0?[]:b("AdsSponsoredMessageValidationUtils").validateObjective(c)};return c}(b("AdsAbstractValidator"));e.exports=new a()}),null); __d("AdsCampaignTimeValidator",["errorCode","errorDesc","fbt","AdsAbstractValidator","AdsAPIAccountPaths","AdsAPICampaignGroupPaths","AdsAPICampaignGroupRecordUtils","AdsAPICampaignPaths","AdsBuyingTypes","AdsError","AdsErrorsCTAStrings","DateConsts","DateTime","expandPaths","isTruthy","unixTimestampFromDate"],(function(a,b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j=1;a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getName=function(){return e.id};d.getDependencies=function(){return{account:b("expandPaths")([b("AdsAPIAccountPaths").CAPABILITIES,b("AdsAPIAccountPaths").TIMEZONE_ID]),campaign:b("expandPaths")([b("AdsAPICampaignPaths").DAILY_BUDGET,b("AdsAPICampaignPaths").END_TIME,b("AdsAPICampaignPaths").LIFETIME_BUDGET,b("AdsAPICampaignPaths").START_TIME]),campaignGroup:b("expandPaths")([b("AdsAPICampaignGroupPaths").BUYING_TYPE,b("AdsAPICampaignGroupPaths").DAILY_BUDGET,b("AdsAPICampaignGroupPaths").LIFETIME_BUDGET]),isCampaignNew:null,originalCampaign:b("expandPaths")([b("AdsAPICampaignPaths").END_TIME,b("AdsAPICampaignPaths").START_TIME])}};d.shouldValidate=function(a){a.account;a=a.campaignGroup;var c=a==null?void 0:a.buying_type;return a&&b("AdsAPICampaignGroupRecordUtils").hasBudget(a)?!1:c!==b("AdsBuyingTypes").RESERVED};d.validate=function(a){__p&&__p();var c=a.account,d=a.campaign,e=a.campaignGroup,f=a.isCampaignNew;a=a.originalCampaign;var g=[];c=(c==null?void 0:c.timezone_id)||j;var h=b("DateTime").now(c).addMinutes(-1),i=d.start_time;i=i?b("unixTimestampFromDate")(i):null;var k;b("isTruthy")(i)&&(k=b("DateTime").fromLegacyArgs(i*b("DateConsts").MS_PER_SEC,c));i=d.end_time;i=i?b("unixTimestampFromDate")(i):null;var l;b("isTruthy")(i)&&(l=b("DateTime").fromLegacyArgs(i*b("DateConsts").MS_PER_SEC,c));c=e==null?void 0:e.buying_type;e=d.daily_budget;d=d.lifetime_budget;!l&&(c===b("AdsBuyingTypes").FIXED_PRICE||d)&&g.push(this.$AdsCampaignTimeValidator1());k||g.push(this.$AdsCampaignTimeValidator2());d=a==null?void 0:a.end_time;a=d!=null?b("unixTimestampFromDate")(d):null;(f===!0||i!==a)&&l&&l.getUnixTimestampSeconds()0,j=e.audience_network_positions&&e.audience_network_positions.length>0||e.instagram_positions&&e.instagram_positions.length>0||e.messenger_positions&&e.messenger_positions.length>0;if(c===b("AdsAPIOptimizationGoals").TWO_SECOND_CONTINUOUS_VIDEO_VIEWS&&i(e,b("AdsAPIDevicePlatform").DESKTOP)&&f===!0&&j!==!0){if(!a.capabilities.includes("CAN_USE_FB_DESKTOP_IN_MRC_VIDEO_VIEW"))return[d.ERROR.WARN]}else if(c===b("AdsAPIOptimizationGoals").TWO_SECOND_CONTINUOUS_VIDEO_VIEWS&&h(e,b("AdsAPIDevicePlatform").DESKTOP)&&f===!0&&!a.capabilities.includes("CAN_USE_FB_DESKTOP_IN_MRC_VIDEO_VIEW"))return[d.ERROR.RECOMMEND];return f!==!0&&j!==!0?[d.ERROR.WARN]:[]};return c}(b("AdsAbstractValidator"));e.exports=new a()}),null); __d("AdsCampaignWhatsAppValidator",["errorCode","errorDesc","AdsAbstractValidator","AdsAPIAccountPaths","AdsAPICampaignGroupPaths","AdsAPICampaignPaths","AdsAPICampaignRecordUtils","AdsAPIObjectives","AdsError","AdsErrorsCTAStrings","AdsPromotedObjectTypes","expandPaths","isFalsey"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getName=function(){return e.id};d.getDependencies=function(){return{account:b("expandPaths")([b("AdsAPIAccountPaths").CAPABILITIES]),campaign:b("expandPaths")([b("AdsAPICampaignPaths").DESTINATION_TYPE,b("AdsAPICampaignPaths").PROMOTED_OBJECT.path,b("AdsAPICampaignPaths").PROMOTED_OBJECT.PAGE_ID,b("AdsAPICampaignPaths").OPTIMIZATION_GOAL]),campaignGroup:b("expandPaths")([b("AdsAPICampaignGroupPaths").OBJECTIVE]),eligibilityInfo:null}};d.shouldValidate=function(a){var c=a.campaign;a=a.campaignGroup;a=a==null?void 0:a.objective;c=b("AdsAPICampaignRecordUtils").getPromotedObjectType(a,c);return a===b("AdsAPIObjectives").MESSAGES&&c===b("AdsPromotedObjectTypes").WHATSAPP};d.validate=function(a){a=a.campaign;var c=[];a=(a=a.promoted_object)==null?void 0:a.page_id;b("isFalsey")(a)&&c.push(b("AdsError").createError(1815807,h._(function(a,b){return a._("Page is required in Promoted Object for WhatsApp Destination Type")},{}),{cta:b("AdsErrorsCTAStrings").WHATSAPP_MISSING_FACEBOOK_PAGE,level:b("AdsError").Level.WARN,path:b("AdsAPICampaignPaths").PROMOTED_OBJECT.PAGE_ID}));return c};return c}(b("AdsAbstractValidator"));e.exports=new a()}),null); __d("AdsDirectDealsDetailsLoadedDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"DIRECT_DEALS.DETAILS_LOADED"}}),null); __d("AdsDirectDealDataStore",["AdsAudienceDirectConfig","AdsDataAtom","AdsDirectDealsDataManager","AdsDirectDealsDetailsLoadedDataActionFlux","FluxLoadObjectStore","adsCreateStoreThunkSelector"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;g0)){f.next=19;break}f.next=8;return b("regeneratorRuntime").awrap(b("ExternalEventSourcesAPI").remove(a,c.sources_to_remove));case 8:if(!(c.sources_to_add.size>0)){f.next=14;break}f.next=11;return b("regeneratorRuntime").awrap(b("ExternalEventSourcesAPI").addWithReadBack(a,c.sources_to_add));case 11:e=f.sent;f.next=17;break;case 14:f.next=16;return b("regeneratorRuntime").awrap(b("ExternalEventSourcesAPI").fetch(a));case 16:e=f.sent;case 17:f.next=22;break;case 19:f.next=21;return b("regeneratorRuntime").awrap(b("ExternalEventSourcesAPI").addWithReadBack(a,c.sources_to_add));case 21:e=f.sent;case 22:d=new Map([[a,b("LoadObject").withValue(b("immutable").List(e))]]);f.next=28;break;case 25:f.prev=25,f.t0=f["catch"](4),d=new Map([[a,b("LoadObject").withError(f.t0)]]);case 28:b("ProductCatalogExternalEventSourcesChangedAction").dispatch({externalEventSources:d},{line:"82",module:"ExternalEventSourceActions.js"});case 29:case"end":return f.stop()}},null,this,[[4,25]])}};e.exports=a}),null); __d("ProductsExternalEventSourceListLoadErrorAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"ProductCatalog.EXTERNAL_EVENT_SOURCE.LIST.LOAD_ERROR");e.exports=a}),null); __d("ProductsExternalEventSourceListLoadedAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"ProductCatalog.EXTERNAL_EVENT_SOURCE.LIST.LOADED");e.exports=a}),null); __d("ExternalEventSourceListActions",["ProductsExternalEventSourceListLoadedAction","ProductsExternalEventSourceListLoadErrorAction"],(function(a,b,c,d,e,f){"use strict";a={externalEventSourceListLoaded:function(a,c){b("ProductsExternalEventSourceListLoadedAction").dispatch({productCatalogID:a,externalEventSources:c},{line:"20",module:"ExternalEventSourceListActions.js"})},externalEventSourceListLoadError:function(a){b("ProductsExternalEventSourceListLoadErrorAction").dispatch({productCatalogID:a},{line:"27",module:"ExternalEventSourceListActions.js"})}};e.exports=a}),null); __d("ExternalEventSourceListDataManager",["fbt","AdsBaseListDataManager","ExternalEventSourceActions","ExternalEventSourceListActions","ExternalEventSourcesAPI","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.loadFor=function(a){b("promiseDone")(b("ExternalEventSourcesAPI").fetch(a),this.__handleSuccess.bind(this,["load"],a,null),this.__handleError.bind(this,["load"],a,null))};d.$ExternalEventSourceListDataManagerClass1=function(a){var c=new Map();a.forEach(function(a){c.set(a.id,a)});b("ExternalEventSourceActions").externalEventSourceLoaded(c)};d.__onBatchLoaded=function(a){var c=this;a.forEach(function(a,d){c.$ExternalEventSourceListDataManagerClass1(a),b("ExternalEventSourceListActions").externalEventSourceListLoaded(d,a)})};d.__onBatchLoadError=function(a){a.forEach(function(a,c){b("ExternalEventSourceListActions").externalEventSourceListLoadError(c)})};d.__getObjectTypeLabel=function(){return g._("Product Catalog")};return c}(b("AdsBaseListDataManager"));c=new a();e.exports=c}),null); __d("ExternalEventSourceListStore",["AdsDataAtom","ExternalEventSourceListDataManager","FluxLoadObjectStore","ProductsActionTypes","adsCreateStoreThunkSelector","immutable"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;g=c.length)break;f=c[e++]}else{e=c.next();if(e.done)break;f=e.value}f=f;b("CatalogBusinessEventsLoggerHelper").getCatalogCreationLogger().setEvent("catalog_create_success").setCatalogID(f.id).log()}b("ProductsCatalogCreatedAction").dispatch({catalogs:a},{line:"80",module:"ProductCatalogActions.js"})},catalogBatchLoaded:function(a){b("ProductsCatalogBatchLoadedAction").dispatch({catalogs:a},{line:"86",module:"ProductCatalogActions.js"})},catalogBatchLoadError:function(a){b("ProductsCatalogBatchLoadErrorAction").dispatch({errors:a},{line:"92",module:"ProductCatalogActions.js"})},connectExternalEventSources:function(a,c){b("ProductsCatalogConnectExternalEventSourcesAction").dispatch({catalogID:a,eventSourceIDs:c},{line:"101",module:"ProductCatalogActions.js"})},disconnectExternalEventSources:function(a,c){b("ProductsCatalogDisconnectExternalEventSourcesAction").dispatch({catalogID:a,eventSourceIDs:c},{line:"111",module:"ProductCatalogActions.js"})},addExternalEventSources:function(a,c){b("ProductsCatalogAddExternalEventSourcesAction").dispatch({productCatalogID:a,externalEventSources:c},{line:"121",module:"ProductCatalogActions.js"})},deleteExternalEventSources:function(a,c){b("ProductsCatalogDeleteExternalEventSourcesAction").dispatch({productCatalogID:a,externalEventSources:c},{line:"131",module:"ProductCatalogActions.js"})},catalogExternalEventSourcesUpdated:function(a){b("ProductsCatalogExternalEventSourceListUpdatedAction").dispatch({productCatalogID:a},{line:"138",module:"ProductCatalogActions.js"})},reloadFeedPreview:function(a,c){b("ProductsCatalogPreviewReloadAction").dispatch({productCatalogID:a,fileMeta:c},{line:"144",module:"ProductCatalogActions.js"})},feedPreviewLoaded:function(a,c){b("ProductsCatalogPreviewLoadedAction").dispatch({id:a,response:c},{line:"151",module:"ProductCatalogActions.js"})},feedPreviewLoadError:function(a,c){b("ProductsCatalogPreviewErrorAction").dispatch({id:a,error:c},{line:"158",module:"ProductCatalogActions.js"})},catalogEventStatsLoaded:function(a,c){b("ProductsEventStatsLoadedAction").dispatch({key:a,eventStats:c},{line:"168",module:"ProductCatalogActions.js"})},catalogEventStatsLoadError:function(a,c){b("ProductsEventStatsLoadErrorAction").dispatch({key:a,error:c},{line:"175",module:"ProductCatalogActions.js"})},reload:function(a){b("ProductsCatalogReloadAction").dispatch({productCatalogID:a},{line:"182",module:"ProductCatalogActions.js"})},addProduct:function(a){b("ProductsCatalogAddProductAction").dispatch({catalogID:a},{line:"188",module:"ProductCatalogActions.js"})},partialReload:function(a){b("ProductsCatalogPartialReloadAction").dispatch({productCatalogID:a},{line:"194",module:"ProductCatalogActions.js"})},update:function(a,c){b("ProductsCatalogUpdateAction").dispatch({data:c,productCatalogID:a},{line:"200",module:"ProductCatalogActions.js"})},attachToBusiness:function(a,c){b("CatalogBusinessEventsLoggerHelper").getCatalogSettingsLogger().setEvent("catalog_settings_attach_to_business").setActionData({busines_id:c}).setCatalogID(a).log(),b("ProductsCatalogAttachToBusinessAction").dispatch({productCatalogID:a,businessID:c},{line:"212",module:"ProductCatalogActions.js"})},attachToLocationsPage:function(a,c){b("ProductsCatalogAttachToLocationsPageAction").dispatch({productCatalogID:a,pageID:c},{line:"219",module:"ProductCatalogActions.js"})},"delete":function(a){b("ProductsCatalogDeleteBatchAction").dispatch({productCatalogID:a},{line:"226",module:"ProductCatalogActions.js"})},closeExternalEventSourceAssociationDialog:function(a){b("ProductsExternalEventSourceAssociationDialogCloseAction").dispatch({productCatalogID:a},{line:"232",module:"ProductCatalogActions.js"})},openExternalEventSourceAssociationDialog:function(){b("ProductsExternalEventSourceAssociationDialogOpenAction").dispatch({},{line:"238",module:"ProductCatalogActions.js"})},externalEventSourceAssociationDialogAutoOpened:function(){b("ProductsExternalEventSourceAssociationDialogAutoOpenAction").dispatch({},{line:"242",module:"ProductCatalogActions.js"})},someExternalEventSourceHasNoSignal:function(){b("ProductsExternalEventSourceNoSignalAction").dispatch({},{line:"246",module:"ProductCatalogActions.js"})},sendQualityReport:function(a,c){b("ProductsCatalogSendQualityReportAction").dispatch({productCatalogID:a,data:c},{line:"253",module:"ProductCatalogActions.js"})},populateFromEventData:function(a,c){b("ProductsCatalogPopulateFromEventAction").dispatch({productCatalogID:a,data:c},{line:"260",module:"ProductCatalogActions.js"})},createCommerceMerchantSettings:function(a,c){b("ProductsCatalogCreateCommerceMerchantSettingsAction").dispatch({productCatalogID:a,data:c},{line:"270",module:"ProductCatalogActions.js"})}};e.exports=a}),null); __d("DynamicItemsPluralCapitalized$FbtEnum",[],(function(a,b,c,d,e,f){"use strict";a={automotive_models:"Automotive Models",bookable:"Bookable Items",commerce:"Products",destinations:"Destinations",flights:"Flights",home_listings:"Home Listings",home_service_providers:"Home Service Providers",hotels:"Hotels",media_titles:"Media Titles",ticketed_experiences:"Ticketed Experiences",vehicle_offers:"Vehicle Offers",vehicles:"Vehicles"};e.exports=a}),null); __d("SmartPixelMicrodataFormat",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({OPEN_GRAPH_KEY:"OpenGraph",SCHEMA_ORG_KEY:"Schema.org",JSON_LD:"JSON-LD"})}),null); __d("ProductCatalogDataManagerHelpers",["fbt","DynamicItemsPluralCapitalized$FbtEnum","SmartPixelMicrodataFormat","immutable"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h={parseObject:function(a){return h.parseStringToStringMap(a).toObject()},parseStringToStringMap:function(a){return b("immutable").fromJS(a!=void 0?a:{}).toMap().mapEntries(function(a){return[a[1].get("key"),a[1].get("value")]})},parseStringToArrayStringMap:function(a){return b("immutable").fromJS(a!=void 0?a:{}).toMap().mapEntries(function(a){return[a[1].get("key"),b("immutable").List(a[1].get("value")).toArray()]})},parseMicrodataFormatKeysToTypes:function(a){return a.map(function(a){return b("SmartPixelMicrodataFormat")[a]})},parseMicrodataFormatTypesToKeys:function(a){return a.map(function(a){a=Object.values(b("SmartPixelMicrodataFormat")).indexOf(a);return Object.keys(b("SmartPixelMicrodataFormat"))[a]})},getDefaultProductSetName:function(a){return g._({"automotive_models":"All Automotive Models","bookable":"All Bookable Items","commerce":"All Products","destinations":"All Destinations","flights":"All Flights","home_listings":"All Home Listings","home_service_providers":"All Home Service Providers","hotels":"All Hotels","media_titles":"All Media Titles","ticketed_experiences":"All Ticketed Experiences","vehicle_offers":"All Vehicle Offers","vehicles":"All Vehicles"},[g._enum(a,b("DynamicItemsPluralCapitalized$FbtEnum"))])}};e.exports=h}),null); __d("ProductsCatalogConnectExternalEventSourcesFailedReducerPlugin",["LoadObject"],(function(a,b,c,d,e,f){"use strict";a={reduce:function(a,c){var d=a.connectedEventSourcesByCatalogID;a=a.disconnectedEventSourcesByCatalogID;var e=c.catalogID,f=c.eventSourceIDs;c=c.error;return{connectedEventSourcesByCatalogID:d.set(e,b("LoadObject").withError(c).setValue(f)),disconnectedEventSourcesByCatalogID:a}}};e.exports=a}),null); __d("ProductsCatalogConnectExternalEventSourcesFailedAction",["Laminar","ProductsCatalogConnectExternalEventSourcesFailedReducerPlugin","ProductsCatalogExternalEventSourcesConnectionStatusDataProvider"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("Laminar").__createReducer(b("ProductsCatalogConnectExternalEventSourcesFailedReducerPlugin"),b("ProductsCatalogExternalEventSourcesConnectionStatusDataProvider"),{})]},function(){return[]},"ProductsCatalogConnectExternalEventSourcesFailedActionPlugin");e.exports=a}),null); __d("ProductsCatalogConnectExternalEventSourcesSucceededReducerPlugin",["LoadObject"],(function(a,b,c,d,e,f){"use strict";a={reduce:function(a,c){var d=a.connectedEventSourcesByCatalogID;a=a.disconnectedEventSourcesByCatalogID;var e=c.catalogID;c=c.eventSourceIDs;return{connectedEventSourcesByCatalogID:d.set(e,b("LoadObject").withValue(c)),disconnectedEventSourcesByCatalogID:a}}};e.exports=a}),null); __d("ProductsCatalogConnectExternalEventSourcesSucceededAction",["Laminar","ProductsCatalogConnectExternalEventSourcesSucceededReducerPlugin","ProductsCatalogExternalEventSourcesConnectionStatusDataProvider"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("Laminar").__createReducer(b("ProductsCatalogConnectExternalEventSourcesSucceededReducerPlugin"),b("ProductsCatalogExternalEventSourcesConnectionStatusDataProvider"),{})]},function(){return[]},"ProductsCatalogConnectExternalEventSourcesSucceededActionPlugin");e.exports=a}),null); __d("ProductsCatalogDisconnectExternalEventSourcesFailedReducerPlugin",["LoadObject"],(function(a,b,c,d,e,f){"use strict";a={reduce:function(a,c){var d=a.connectedEventSourcesByCatalogID;a=a.disconnectedEventSourcesByCatalogID;var e=c.catalogID,f=c.eventSourceIDs;c=c.error;return{connectedEventSourcesByCatalogID:d,disconnectedEventSourcesByCatalogID:a.set(e,b("LoadObject").withError(c).setValue(f))}}};e.exports=a}),null); __d("ProductsCatalogDisconnectExternalEventSourcesFailedAction",["Laminar","ProductsCatalogDisconnectExternalEventSourcesFailedReducerPlugin","ProductsCatalogExternalEventSourcesConnectionStatusDataProvider"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("Laminar").__createReducer(b("ProductsCatalogDisconnectExternalEventSourcesFailedReducerPlugin"),b("ProductsCatalogExternalEventSourcesConnectionStatusDataProvider"),{})]},function(){return[]},"ProductsCatalogDisconnectExternalEventSourcesFailedActionPlugin");e.exports=a}),null); __d("ProductsCatalogDisconnectExternalEventSourcesSucceededReducerPlugin",["LoadObject"],(function(a,b,c,d,e,f){"use strict";a={reduce:function(a,c){var d=a.connectedEventSourcesByCatalogID;a=a.disconnectedEventSourcesByCatalogID;var e=c.catalogID;c=c.eventSourceIDs;return{connectedEventSourcesByCatalogID:d,disconnectedEventSourcesByCatalogID:a.set(e,b("LoadObject").withValue(c))}}};e.exports=a}),null); __d("ProductsCatalogDisconnectExternalEventSourcesSucceededAction",["Laminar","ProductsCatalogDisconnectExternalEventSourcesSucceededReducerPlugin","ProductsCatalogExternalEventSourcesConnectionStatusDataProvider"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("Laminar").__createReducer(b("ProductsCatalogDisconnectExternalEventSourcesSucceededReducerPlugin"),b("ProductsCatalogExternalEventSourcesConnectionStatusDataProvider"),{})]},function(){return[]},"ProductsCatalogDisconnectExternalEventSourcesSucceededActionPlugin");e.exports=a}),null); __d("ProductsCatalogListLoadedAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"ProductCatalog.CATALOG.LIST.LOADED");e.exports=a}),null); __d("ProductsErrorClearAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"ProductCatalog.ERROR.CLEAR");e.exports=a}),null); __d("ProductsErrorSetAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"ProductCatalog.ERROR.SET");e.exports=a}),null); __d("ProductsErrorActions",["ProductsErrorClearAction","ProductsErrorSetAction"],(function(a,b,c,d,e,f){"use strict";a={set:function(a){b("ProductsErrorSetAction").dispatch({error:a},{line:"17",module:"ProductsErrorActions.js"})},clear:function(){b("ProductsErrorClearAction").dispatch({},{line:"23",module:"ProductsErrorActions.js"})}};e.exports=a}),null); __d("ProductsDataManager",["AdsBaseDataManager","ProductsErrorActions"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.__onBatchProductsError=function(a){__p&&__p();for(var a=a.values(),c=Array.isArray(a),d=0,a=c?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(c){if(d>=a.length)break;e=a[d++]}else{d=a.next();if(d.done)break;e=d.value}e=e;b("ProductsErrorActions").set(e);return}};d.__onBatchCreateError=function(a){this.__onBatchProductsError(a)};d.__onBatchDeleteError=function(a){this.__onBatchProductsError(a)};d.__onBatchUpdateError=function(a){this.__onBatchProductsError(a)};return c}(b("AdsBaseDataManager"));e.exports=a}),null); __d("ProductCatalogDataManager",["fbt","AdsProductSetCreateBatchDataAction","Bootloader","CatalogGraphAPI","CurrentUser","ExternalEventSourcesAPI","ManualCatalogCreatedAction","ProductAppContextActions","ProductCatalogActions","ProductCatalogAPIClient","ProductCatalogAPIParams","ProductCatalogDataManagerHelpers","ProductsCatalogConnectExternalEventSourcesFailedAction","ProductsCatalogConnectExternalEventSourcesSucceededAction","ProductsCatalogDisconnectExternalEventSourcesFailedAction","ProductsCatalogDisconnectExternalEventSourcesSucceededAction","ProductsCatalogListLoadedAction","ProductsDataManager","promiseDone","AdsProductSetStore_DEPRECATED"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h=b("ProductCatalogAPIParams").fields.concat(["product_count"]);a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.loadAll=function(a){var b=this;a.forEach(function(a){return b.load(a)})};d.loadWithFields=function(a,c,d){var e=this;d===void 0&&(d=!0);b("promiseDone")(b("ProductCatalogAPIClient").loadWithFields(a,c),this.__handleSuccess.bind(this,["load"],a,null),function(b){d?e.retryLoad(a):e.__handleError(["load"],a,null,b)})};d.load=function(a){this.loadWithFields(a,h,!0)};d.loadFeedPreview=function(a,c,d){var f=this;b("promiseDone")(b("CatalogGraphAPI").get(e.id).object("product_catalog",a).edge("feed_previews").post({file_meta:c,feed_type:d}),function(b){return f.__onFeedPreviewLoaded(a+c,b)},function(b){return f.__onFeedPreviewLoadError(a+c,b)})};d.loadCreatedCatalog=function(a){var c=this;b("promiseDone")(b("ProductCatalogAPIClient").loadWithFields(a,h),function(d){d.name=="Manually Added Products"&&b("ManualCatalogCreatedAction").dispatch({catalogID:d.id},{line:"100",module:"ProductCatalogDataManager.js"}),b("ProductsCatalogListLoadedAction").dispatch({userID:b("CurrentUser").getAccountID(),searchStr:"",productCatalogs:[d]},{line:"104",module:"ProductCatalogDataManager.js"}),c.__handleSuccess.bind(c,["load"],a,null)},function(b){c.__handleError(["load"],a,null,b)})};d.createAndFetchProductCatalog=function(a,c){var d=this;b("promiseDone")(b("ProductCatalogAPIClient").createCatalog(c),function(a){return d.loadCreatedCatalog(a.id)},this.__handleError.bind(this,["create"],a,null))};d.createProductCatalog=function(a,c){var d=this;b("promiseDone")(b("ProductCatalogAPIClient").createCatalog(c),function(b){return d.__handleSuccess(["create"],a,null,{id:b.id,parent_catalog_id:c.parent_catalog_id,vertical:c.vertical,externalEventSources:c.externalEventSources})},function(b){return d.__handleError(["create"],a,null,babelHelpers["extends"]({},b,{error_user_title:g._("Your catalog couldn't be created"),error_user_msg:b.error_user_msg?b.error_user_msg:g._("Please go back and try again.")}))})};d.update=function(a,c){var d=this;b("promiseDone")(b("CatalogGraphAPI").get(e.id).object("product_catalog",a).batched().post(c),function(b){return d.__handleSuccess(["update"],a,null,{productCatalogID:a,data:c})},function(b){return d.__handleError(["update"],a,null,b)})};d.attachToBusiness=function(a,b){this.update(a,{business_id:b})};d.attachToLocationsPage=function(a,b){this.update(a,{store_catalog_settings:{page_id:b}})};d.addExternalEventSources=function(a,c){var d=this;b("promiseDone")(b("ExternalEventSourcesAPI").add(a,c),function(e){d.$ProductCatalogDataManagerClass1(a),b("ProductsCatalogConnectExternalEventSourcesSucceededAction").dispatch({catalogID:a,eventSourceIDs:c},{line:"197",module:"ProductCatalogDataManager.js"})},function(e){b("ProductsCatalogConnectExternalEventSourcesFailedAction").dispatch({catalogID:a,eventSourceIDs:c,error:e},{line:"203",module:"ProductCatalogDataManager.js"}),d.__handleError(["update"],a,null,e)})};d.deleteExternalEventSources=function(a,c){var d=this;b("promiseDone")(b("ExternalEventSourcesAPI").remove(a,c),function(e){d.$ProductCatalogDataManagerClass1(a),b("ProductsCatalogDisconnectExternalEventSourcesSucceededAction").dispatch({catalogID:a,eventSourceIDs:c},{line:"221",module:"ProductCatalogDataManager.js"})},function(e){b("ProductsCatalogDisconnectExternalEventSourcesFailedAction").dispatch({catalogID:a,eventSourceIDs:c,error:e},{line:"227",module:"ProductCatalogDataManager.js"}),d.__handleError(["update"],a,null,e)})};d["delete"]=function(a){b("promiseDone")(b("CatalogGraphAPI").get(e.id).object("product_catalog",a).batched().remove(),this.__handleSuccess.bind(this,["delete"],a,null),this.__handleError.bind(this,["delete"],a,null))};d.sendQualityReport=function(a,c){var d=this;b("promiseDone")(b("CatalogGraphAPI").get(e.id).object("product_catalog",a).edge("email_quality_report").post(c),function(b){return d.__handleSuccess(["update"],a,null,{productCatalogID:a})},function(b){return d.__handleError(["update"],a,null,b)})};d.retryLoad=function(a){this.loadWithFields(a,b("ProductCatalogAPIParams").fields,!1)};d.populateFromEventData=function(a,c){var d=this;b("promiseDone")(b("CatalogGraphAPI").get(e.id).object("product_catalog",a).edge("populate_from_event_data").post(c),function(){},function(b){return d.__handleError(["update"],a,null,b)})};d.createCommerceMerchantSettings=function(a,c){var d=this;b("promiseDone")(b("ProductCatalogAPIClient").createCommerceMerchantSetings(a,c),function(b){return d.__handleSuccess(["update"],a,null,{productCatalogID:a})},function(b){return d.__handleError(["update"],a,null,b)})};d.__onBatchDeleted=function(a){b("ProductAppContextActions").set({catalogID:null,ownerID:null,ownerType:null})};d.$ProductCatalogDataManagerClass1=function(a){b("ProductCatalogActions").catalogExternalEventSourcesUpdated(a),b("ProductCatalogActions").partialReload(a)};d.__onFeedPreviewLoaded=function(a,c){b("ProductCatalogActions").feedPreviewLoaded(a,c)};d.__onFeedPreviewLoadError=function(a,c){b("ProductCatalogActions").feedPreviewLoadError(a,c)};d.__onBatchCreated=function(a){b("AdsProductSetStore_DEPRECATED"),a.forEach(function(a,c){c=b("ProductCatalogDataManagerHelpers").getDefaultProductSetName(a.vertical);b("AdsProductSetCreateBatchDataAction").dispatch({objectsData:[{name:c.toString()}],productCatalogID:a.id},{line:"331",module:"ProductCatalogDataManager.js"});a.externalEventSources&&a.externalEventSources.length>0&&b("ProductCatalogActions").addExternalEventSources(a.id,a.externalEventSources);a.parent_catalog_id&&b("Bootloader").loadModules(["CatalogSegmentActions"],function(b){b.catalogSegmentCreated(a)},"ProductCatalogDataManager")}),b("ProductCatalogActions").catalogCreated(a)};d.__onBatchLoaded=function(a){b("ProductCatalogActions").catalogBatchLoaded(a)};d.__onBatchLoadError=function(a){b("ProductCatalogActions").catalogBatchLoadError(a)};d.__onBatchUpdated=function(a){a=a.keys().next().value;a&&b("ProductCatalogActions").reload(a)};d.__getObjectTypeLabel=function(){return g._("Product Catalog")};return c}(b("ProductsDataManager"));c=new a();e.exports=c}),null); __d("ProductsCatalogConnectExternalEventSourcesActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"ProductsCatalogConnectExternalEventSourcesActionPlugin"}}),null); __d("ProductsCatalogDisconnectExternalEventSourcesActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"ProductsCatalogDisconnectExternalEventSourcesActionPlugin"}}),null); __d("ProductCatalogExpensiveStore",["AdsBaseDataStore","AdsLoadState_LEGACY","ImmutableObject","ProductCatalogDataManager","ProductsActionTypes","ProductsCatalogConnectExternalEventSourcesActionFlux","ProductsCatalogDisconnectExternalEventSourcesActionFlux"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getDataManager=function(){return b("ProductCatalogDataManager")};d.__getActionTypes=function(){return[b("ProductsActionTypes").CATALOG.ADD_EXTERNAL_EVENT_SOURCES,b("ProductsActionTypes").CATALOG.ADD_PRODUCT,b("ProductsActionTypes").CATALOG.ATTACH_TO_BUSINESS,b("ProductsActionTypes").CATALOG.ATTACH_TO_LOCATIONS_PAGE,b("ProductsActionTypes").CATALOG.BATCH_LOADED,b("ProductsActionTypes").CATALOG.BATCH_LOAD_ERROR,b("ProductsActionTypes").CATALOG.CREATE,b("ProductsActionTypes").CATALOG.CREATED,b("ProductsActionTypes").CATALOG.CREATE_AND_FETCH,b("ProductsActionTypes").CATALOG.CREATE_COMMERCE_MERCHANT_SETTINGS,b("ProductsActionTypes").CATALOG.DELETE_BATCH,b("ProductsActionTypes").CATALOG.DELETE_EXTERNAL_EVENT_SOURCES,b("ProductsActionTypes").CATALOG.LIST.REMOVE,b("ProductsActionTypes").CATALOG.PARTIAL_RELOAD,b("ProductsActionTypes").CATALOG.POPULATE_FROM_EVENT_DATA,b("ProductsActionTypes").CATALOG.RELOAD,b("ProductsActionTypes").CATALOG.SEND_QUALITY_REPORT,b("ProductsActionTypes").CATALOG.UPDATE,b("ProductsActionTypes").FEED.BATCH_DELETED,b("ProductsActionTypes").FEED.CREATED,b("ProductsCatalogConnectExternalEventSourcesActionFlux").actionType,b("ProductsCatalogDisconnectExternalEventSourcesActionFlux").actionType]};d.__onDispatch=function(a){__p&&__p();a=a.action;switch(a.actionType){case b("ProductsActionTypes").CATALOG.CREATE:b("ProductCatalogDataManager").createProductCatalog(a.clientID,a.data);break;case b("ProductsActionTypes").CATALOG.CREATE_AND_FETCH:b("ProductCatalogDataManager").createAndFetchProductCatalog(a.clientID,a.data);break;case b("ProductsActionTypes").CATALOG.CREATED:this.__handleData(a.catalogs,b("AdsLoadState_LEGACY").LOADED);break;case b("ProductsActionTypes").CATALOG.UPDATE:this.$ProductCatalogExpensiveStoreClass1(a.productCatalogID,a.data,a.localOnly);break;case b("ProductsActionTypes").CATALOG.BATCH_LOADED:this.__handleData(a.catalogs,b("AdsLoadState_LEGACY").LOADED);break;case b("ProductsActionTypes").CATALOG.BATCH_LOAD_ERROR:this.__handleData(a.errors,b("AdsLoadState_LEGACY").ERROR);break;case b("ProductsCatalogConnectExternalEventSourcesActionFlux").actionType:b("ProductCatalogDataManager").addExternalEventSources(a.catalogID,a.eventSourceIDs);break;case b("ProductsCatalogDisconnectExternalEventSourcesActionFlux").actionType:b("ProductCatalogDataManager").deleteExternalEventSources(a.catalogID,a.eventSourceIDs);break;case b("ProductsActionTypes").CATALOG.ADD_EXTERNAL_EVENT_SOURCES:b("ProductCatalogDataManager").addExternalEventSources(a.productCatalogID,a.externalEventSources);break;case b("ProductsActionTypes").CATALOG.DELETE_EXTERNAL_EVENT_SOURCES:b("ProductCatalogDataManager").deleteExternalEventSources(a.productCatalogID,a.externalEventSources);break;case b("ProductsActionTypes").CATALOG.DELETE_BATCH:b("ProductCatalogDataManager")["delete"](a.productCatalogID);break;case b("ProductsActionTypes").FEED.CREATED:this.__invalidate(a.productCatalogID)&&this.__emitChange();break;case b("ProductsActionTypes").CATALOG.ATTACH_TO_BUSINESS:b("ProductCatalogDataManager").attachToBusiness(a.productCatalogID,a.businessID);break;case b("ProductsActionTypes").CATALOG.ATTACH_TO_LOCATIONS_PAGE:b("ProductCatalogDataManager").attachToLocationsPage(a.productCatalogID,a.pageID);break;case b("ProductsActionTypes").CATALOG.PARTIAL_RELOAD:b("ProductCatalogDataManager").load(a.productCatalogID);break;case b("ProductsActionTypes").CATALOG.RELOAD:case b("ProductsActionTypes").FEED.BATCH_DELETED:this.__invalidate(a.productCatalogID)&&this.__emitChange();break;case b("ProductsActionTypes").CATALOG.LIST.REMOVE:this.__invalidateAll(a.catalogIds)&&this.__emitChange();break;case b("ProductsActionTypes").CATALOG.SEND_QUALITY_REPORT:b("ProductCatalogDataManager").sendQualityReport(a.productCatalogID,a.data);break;case b("ProductsActionTypes").CATALOG.POPULATE_FROM_EVENT_DATA:b("ProductCatalogDataManager").populateFromEventData(a.productCatalogID,a.data);break;case b("ProductsActionTypes").CATALOG.CREATE_COMMERCE_MERCHANT_SETTINGS:b("ProductCatalogDataManager").createCommerceMerchantSettings(a.productCatalogID,a.data);break;case b("ProductsActionTypes").CATALOG.ADD_PRODUCT:var c=this.getCached(a.catalogID),d=c.product_count||0;this.__handleData(new Map([[a.catalogID,b("ImmutableObject").set(c,{product_count:d+1})]]),b("AdsLoadState_LEGACY").LOADED);break}};d.$ProductCatalogExpensiveStoreClass1=function(a,c,d){d===void 0&&(d=!1);var e=this.getCached(a);this.__handleData(new Map([[a,b("ImmutableObject").set(e,c)]]),b("AdsLoadState_LEGACY").LOADED);if(d===!0)return;b("ProductCatalogDataManager").update(a,c)};return c}(b("AdsBaseDataStore"));c=new a();e.exports=c}),null); __d("adsProductCatalogStoreSelector",["AdsDynamicCampaignUtils","ManualCatalogIDProvider","ProductCatalogExpensiveStore","adsCreateStoreSelector"],(function(a,b,c,d,e,f){"use strict";e.exports=b("adsCreateStoreSelector")([b("ManualCatalogIDProvider").toFluxStore(),b("ProductCatalogExpensiveStore")],function(a){var c=b("ManualCatalogIDProvider")().get().getValue();return b("AdsDynamicCampaignUtils").isManualCatalogOption(a.productCatalogID,c)?null:a.productCatalogID?b("ProductCatalogExpensiveStore").get(a.productCatalogID):null},e.id)}),null); __d("adsProductCatalogSelector",["AdsLoadStateUtils_LEGACY","LoadObject","adsCreateSelector","adsProductCatalogStoreSelector"],(function(a,b,c,d,e,f){"use strict";e.exports=b("adsCreateSelector")([b("adsProductCatalogStoreSelector")],function(a){return a?b("AdsLoadStateUtils_LEGACY").toLoadObject(a):b("LoadObject").empty()},{name:e.id})}),null); __d("adsCFActiveCampaignGroupProductCatalogSelector",["adsCFActiveCampaignGroupProductCatalogIDSelector","adsCreateSelector","adsCreateStructuredSelector","adsProductCatalogSelector"],(function(a,b,c,d,e,f){"use strict";a=b("adsCreateStructuredSelector")({productCatalogID:b("adsCFActiveCampaignGroupProductCatalogIDSelector")},e.id+".catalogIDSelector");e.exports=b("adsCreateSelector")([a],b("adsProductCatalogSelector"),{name:e.id})}),null); __d("adsCFActiveCampaignGroupProductCatalogVerticalSelector",["CatalogVertical","LoadObject","adsCFActiveCampaignGroupProductCatalogSelector","adsCreateSelector"],(function(a,b,c,d,e,f){"use strict";a=b("adsCreateSelector")([b("adsCFActiveCampaignGroupProductCatalogSelector")],function(a){if(a.isLoading())return b("LoadObject").loading();if(a.isEmpty())return b("LoadObject").withValue(b("CatalogVertical").NONE);a=a.getValueEnforcing().vertical;return b("LoadObject").withValue(a)},{name:e.id});e.exports=a}),null); __d("adsCFActiveCampaignGroupDynamicTargetingPluginSelector",["AdsDynamicTargetingPluginResolver","adsCFActiveCampaignGroupProductCatalogVerticalSelector","adsCreateSelector"],(function(a,b,c,d,e,f){"use strict";a=b("adsCreateSelector")([b("adsCFActiveCampaignGroupProductCatalogVerticalSelector")],function(a){return a.map(function(a){return b("AdsDynamicTargetingPluginResolver").resolve({vertical:a})})},{name:e.id});e.exports=a}),null); __d("AdsProductSetFilterInputType",["keyMirror"],(function(a,b,c,d,e,f){"use strict";a=b("keyMirror")({CURRENCY_INPUT:null,DATE_INPUT:null,STAR_RATING_INPUT:null,TOKENIZED_TEXT_INPUT:null,MIXED_INPUT:null,SEARCHABLE_SELECTOR_TEXT_INPUT:null,INTEGER_INPUT:null});e.exports=a}),null); __d("AdsProductSetFilterOperatorConfig",["fbt","AdsGenericFilterOperatorConfig"],(function(a,b,c,d,e,f,g){"use strict";a={IS_ANY_OF_THESE:{shortText:g._("="),text:g._("is any of these"),operator:"EQUAL"},LESS_THAN:{shortText:g._("\u003C"),text:g._("is less than"),operator:"LESS_THAN"}};e.exports=babelHelpers["extends"]({},b("AdsGenericFilterOperatorConfig"),a)}),null); __d("AdsProductSetFilterFieldCommon",["fbt","AdsGenericFilterField","AdsGenericFilterFieldType","AdsProductSetFilterInputType","AdsProductSetFilterOperatorConfig"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h="image_tags";a={getCommonConfig:function(a){var c={};a.includes(h)&&(c[h]={text:g._("Image Tags"),placeholder:g._("Add image tags"),field:new(b("AdsGenericFilterField"))(h,b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Image tags must be a string"),showInProductsTab:!0});a.includes("country_overrides")&&(c.country_overrides={text:g._("Country"),placeholder:g._("Enter a country"),field:new(b("AdsGenericFilterField"))("country_overrides",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").EQUAL,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL],defaultOperator:"EQUAL",invalidMessage:g._("Country must be a string"),hideFromProductSetCreationFlow:!0});a.includes("language_overrides")&&(c.language_overrides={text:g._("Language"),placeholder:g._("Enter a language"),field:new(b("AdsGenericFilterField"))("language_overrides",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").EQUAL,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL],defaultOperator:"EQUAL",invalidMessage:g._("Language must be a string"),hideFromProductSetCreationFlow:!0});return c},getSortedProperties:function(a){var b=Object.keys(a).filter(function(b){return!a[b].hideFromProductSetCreationFlow});return b.sort()},getFacets:function(a){var b=Object.keys(a).filter(function(b){return a[b].showInProductsTab});return b.sort()}};e.exports=a}),null); __d("VehicleBodyStyle",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({CONVERTIBLE:"CONVERTIBLE",COUPE:"COUPE",CROSSOVER:"CROSSOVER",HATCHBACK:"HATCHBACK",MINIVAN:"MINIVAN",SMALL_CAR:"SMALL_CAR",TRUCK:"TRUCK",SUV:"SUV",SEDAN:"SEDAN",VAN:"VAN",WAGON:"WAGON",OTHER:"OTHER",NONE:"NONE"})}),null); __d("VehicleDrivetrain",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({TWO_WD:"4X2",FOUR_WD:"4X4",AWD:"AWD",FWD:"FWD",RWD:"RWD",OTHER:"Other",NONE:"NONE"})}),null); __d("VehicleFinanceType",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({NONE:"NONE",NO_FINANCE:"NO_FINANCE",PERSONAL_CONTRACT_PURCHASE:"PERSONAL_CONTRACT_PURCHASE",HIRE_PURCHASE:"HIRE_PURCHASE",LEASE:"LEASE"})}),null); __d("VehicleFuelType",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({DIESEL:"DIESEL",ELECTRIC:"ELECTRIC",GASOLINE:"GASOLINE",FLEX:"FLEX",HYBRID:"HYBRID",OTHER:"OTHER",PETROL:"PETROL",PLUGIN_HYBRID:"PLUGIN_HYBRID",NONE:"NONE"})}),null); __d("VehicleTransmission",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({AUTOMATIC:"AUTOMATIC",MANUAL:"MANUAL",OTHER:"OTHER",NONE:"NONE"})}),null); __d("AdsAutomotiveModelSetFilterFieldConfig",["fbt","AdsGenericFilterField","AdsGenericFilterFieldType","AdsProductSetFilterFieldCommon","AdsProductSetFilterInputType","AdsProductSetFilterOperatorConfig","VehicleBodyStyle","VehicleDrivetrain","VehicleFinanceType","VehicleFuelType","VehicleTransmission","intlList"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=babelHelpers["extends"]({},b("AdsProductSetFilterFieldCommon").getCommonConfig(["image_tags","country_overrides","language_overrides"]));a.body_style={text:g._("Body style"),placeholder:g._("Add body style"),field:new(b("AdsGenericFilterField"))("body_style",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL],defaultOperator:"EQUAL",invalidMessage:g._("Body style must be one of: {field list}",[g._param("field list",b("intlList")(Object.keys(b("VehicleBodyStyle")).map(function(a){return"'"+b("VehicleBodyStyle")[a]+"'"}),b("intlList").CONJUNCTIONS.OR))]),showInProductsTab:!0};a.custom_label_0={text:g._("Custom Label 0"),placeholder:g._("Add custom label 0"),field:new(b("AdsGenericFilterField"))("custom_label_0",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Custom Label 0 must be a string")};a.drivetrain={text:g._("Drivetrain"),placeholder:g._("Add drivetrain"),field:new(b("AdsGenericFilterField"))("drivetrain",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL],defaultOperator:"EQUAL",invalidMessage:g._("Drivetrain must be one of: {field list}",[g._param("field list",b("intlList")(Object.keys(b("VehicleDrivetrain")).map(function(a){return"'"+b("VehicleDrivetrain")[a]+"'"}),b("intlList").CONJUNCTIONS.OR))])};a.exterior_color={text:g._("Exterior color"),placeholder:g._("Add exterior color"),field:new(b("AdsGenericFilterField"))("exterior_color",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Exterior color must be a string")};a.finance_type={text:g._("Finance type"),placeholder:g._("Add Finance type"),field:new(b("AdsGenericFilterField"))("finance_type",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL],defaultOperator:"EQUAL",invalidMessage:g._("Fuel type must be one of: {field list}",[g._param("field list",b("intlList")(Object.keys(b("VehicleFinanceType")).map(function(a){return"'"+b("VehicleFinanceType")[a]+"'"}),b("intlList").CONJUNCTIONS.OR))])};a.fuel_type={text:g._("Fuel type"),placeholder:g._("Add fuel type"),field:new(b("AdsGenericFilterField"))("fuel_type",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL],defaultOperator:"EQUAL",invalidMessage:g._("Fuel type must be one of: {field list}",[g._param("field list",b("intlList")(Object.keys(b("VehicleFuelType")).map(function(a){return"'"+b("VehicleFuelType")[a]+"'"}),b("intlList").CONJUNCTIONS.OR))]),showInProductsTab:!0};a.id={text:g._("ID"),placeholder:g._("Add model id"),field:new(b("AdsGenericFilterField"))("id",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("ID must be a string")};a.make={text:g._("Make"),placeholder:g._("Add make"),field:new(b("AdsGenericFilterField"))("make",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Make must be a string"),showInProductsTab:!0};a.model={text:g._("Model"),placeholder:g._("Add model"),field:new(b("AdsGenericFilterField"))("model",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Model must be a string"),showInProductsTab:!0};a.price={text:g._("Price"),placeholder:g._("Add price"),field:new(b("AdsGenericFilterField"))("price",b("AdsGenericFilterFieldType").CURRENCY),inputType:b("AdsProductSetFilterInputType").CURRENCY_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").GREATER_THAN,b("AdsProductSetFilterOperatorConfig").LESS_THAN],defaultOperator:"GREATER_THAN",invalidMessage:g._("Price must be an integer indicating the number of cents")};a.title={text:g._("Title"),placeholder:g._("Add title"),field:new(b("AdsGenericFilterField"))("title",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").MIXED_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"CONTAIN",invalidMessage:g._("Title must be a string")};a.transmission={text:g._("Transmission"),placeholder:g._("Add transmission"),field:new(b("AdsGenericFilterField"))("transmission",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL],defaultOperator:"EQUAL",invalidMessage:g._("Transmission must be one of: {field list}",[g._param("field list",b("intlList")(Object.keys(b("VehicleTransmission")).map(function(a){return"'"+b("VehicleTransmission")[a]+"'"}),b("intlList").CONJUNCTIONS.OR))])};a.trim={text:g._("Trim"),placeholder:g._("Add trim"),field:new(b("AdsGenericFilterField"))("trim",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Trim must be a string")};a.year={text:g._("Year"),placeholder:g._("Add year"),field:new(b("AdsGenericFilterField"))("year",b("AdsGenericFilterFieldType").NUMBER),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").EQUAL],defaultOperator:"EQUAL",invalidMessage:g._("Year must be an integer")};e.exports=a}),null); __d("AdsDestinationSetFilterFieldConfig",["fbt","AdsGenericFilterField","AdsGenericFilterFieldType","AdsProductSetFilterFieldCommon","AdsProductSetFilterInputType","AdsProductSetFilterOperatorConfig"],(function(a,b,c,d,e,f,g){"use strict";a=babelHelpers["extends"]({},b("AdsProductSetFilterFieldCommon").getCommonConfig(["country_overrides","language_overrides"]));a.city={text:g._("City"),placeholder:g._("Add city"),field:new(b("AdsGenericFilterField"))("city",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("City must be a string")};a.country={text:g._("Country"),placeholder:g._("Add country"),field:new(b("AdsGenericFilterField"))("country",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN],defaultOperator:"EQUAL",invalidMessage:g._("Country must be a string"),isDefaultFilter:!0};a.description={text:g._("Description"),placeholder:g._("Add description"),field:new(b("AdsGenericFilterField"))("description",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Description must be a string")};a.destination_id={text:g._("Destination ID"),placeholder:g._("Add destination id"),field:new(b("AdsGenericFilterField"))("destination_id",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Destination ID must be a string")};a.name={text:g._("Name"),placeholder:g._("Add name"),field:new(b("AdsGenericFilterField"))("name",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Name must be a string")};a.price={text:g._("Price"),placeholder:g._("Add price"),field:new(b("AdsGenericFilterField"))("price",b("AdsGenericFilterFieldType").CURRENCY),inputType:b("AdsProductSetFilterInputType").CURRENCY_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").GREATER_THAN,b("AdsProductSetFilterOperatorConfig").LESS_THAN],defaultOperator:"GREATER_THAN",invalidMessage:g._("Price must be an integer indicating the number of cents")};e.exports=a}),null); __d("AdsFlightSetFilterFieldConfig",["fbt","AdsGenericFilterField","AdsGenericFilterFieldType","AdsProductSetFilterFieldCommon","AdsProductSetFilterInputType","AdsProductSetFilterOperatorConfig"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=babelHelpers["extends"]({},b("AdsProductSetFilterFieldCommon").getCommonConfig(["country_overrides","language_overrides"]));a.price={text:g._("Price"),placeholder:g._("Add price"),field:new(b("AdsGenericFilterField"))("price",b("AdsGenericFilterFieldType").CURRENCY),inputType:b("AdsProductSetFilterInputType").CURRENCY_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").GREATER_THAN,b("AdsProductSetFilterOperatorConfig").LESS_THAN],defaultOperator:"GREATER_THAN",invalidMessage:g._("Price must be an integer indicating the number of cents")};a.one_way_price={text:g._("One Way Price"),placeholder:g._("Add one-way price"),field:new(b("AdsGenericFilterField"))("one_way_price",b("AdsGenericFilterFieldType").CURRENCY),inputType:b("AdsProductSetFilterInputType").CURRENCY_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").GREATER_THAN,b("AdsProductSetFilterOperatorConfig").LESS_THAN],defaultOperator:"GREATER_THAN",invalidMessage:g._("Price must be an integer indicating the number of cents")};a.origin_airport={text:g._("Origin Airport"),placeholder:g._("Add origin airport"),field:new(b("AdsGenericFilterField"))("origin_airport",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL],defaultOperator:"EQUAL",invalidMessage:g._("Origin airport must be a string")};a.origin_city={text:g._("Origin City"),placeholder:g._("Add origin city"),field:new(b("AdsGenericFilterField"))("origin_city",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Origin city must be a string")};a.destination_airport={text:g._("Destination Airport"),placeholder:g._("Add destination airport"),field:new(b("AdsGenericFilterField"))("destination_airport",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL],defaultOperator:"EQUAL",invalidMessage:g._("Destination airport must be a string")};a.destination_city={text:g._("Destination City"),placeholder:g._("Add destination city"),field:new(b("AdsGenericFilterField"))("destination_city",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Destination city must be a string"),isDefaultFilter:!0};a.description={text:g._("Description"),placeholder:g._("Add description"),field:new(b("AdsGenericFilterField"))("description",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Description must be a string")};a.flight_id={text:g._("Flight ID"),placeholder:g._("Add flight ID (i.e. \"SFO:JFK\")"),field:new(b("AdsGenericFilterField"))("flight_id",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL],defaultOperator:"EQUAL",invalidMessage:g._("Flight ID must be a string in format \"[Origin Airport Code]:[Destination Airport Code]\"")};a.priority={text:g._("Priority"),placeholder:g._("Add priority"),field:new(b("AdsGenericFilterField"))("priority",b("AdsGenericFilterFieldType").NUMBER),inputType:b("AdsProductSetFilterInputType").INTEGER_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").EQUAL,b("AdsProductSetFilterOperatorConfig").GREATER_THAN],defaultOperator:"EQUAL",defaultValue:[5],values:[0,1,2,3,4,5],invalidMessage:g._("Must select priority")};e.exports=a}),null); __d("AdsHomeListingSetFilterFieldConfig",["fbt","AdsGenericFilterField","AdsGenericFilterFieldType","AdsProductSetFilterFieldCommon","AdsProductSetFilterInputType","AdsProductSetFilterOperatorConfig"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=babelHelpers["extends"]({},b("AdsProductSetFilterFieldCommon").getCommonConfig(["country_overrides","language_overrides"]));a.availability={text:g._("Availability"),placeholder:g._("Add availability"),field:new(b("AdsGenericFilterField"))("availability",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL],defaultOperator:"EQUAL",invalidMessage:g._("Availability must be a string")};a.city={text:g._("City"),placeholder:g._("Add city"),field:new(b("AdsGenericFilterField"))("city",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL],defaultOperator:"EQUAL",invalidMessage:g._("City must be a string")};a.country={text:g._("Country"),placeholder:g._("Add country"),field:new(b("AdsGenericFilterField"))("country",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL],defaultOperator:"EQUAL",invalidMessage:g._("Country must be a string")};a.custom_label_0={text:g._("Custom Label 0"),placeholder:g._("Add custom label"),field:new(b("AdsGenericFilterField"))("custom_label_0",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").MIXED_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Custom Label 0 must be a string")};a.home_listing_id={text:g._("Home Listing ID"),placeholder:g._("Add Home Listing ID"),field:new(b("AdsGenericFilterField"))("home_listing_id",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL],defaultOperator:"EQUAL",invalidMessage:g._("Home Listing ID must be a string")};a.listing_type={text:g._("Listing type"),placeholder:g._("Add listing type"),field:new(b("AdsGenericFilterField"))("listing_type",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL],defaultOperator:"EQUAL",invalidMessage:g._("Listing type must be a string"),showInProductsTab:!0};a.name={text:g._("Name"),placeholder:g._("Add name"),field:new(b("AdsGenericFilterField"))("name",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN],defaultOperator:"CONTAIN",invalidMessage:g._("Name must be a string")};a.neighborhood={text:g._("Neighborhood"),placeholder:g._("Add Neighborhood"),field:new(b("AdsGenericFilterField"))("neighborhood",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Neighborhood must be a string"),showInProductsTab:!0};a.num_baths={text:g._("Number of baths"),placeholder:g._("Add number of baths"),field:new(b("AdsGenericFilterField"))("num_baths",b("AdsGenericFilterFieldType").NUMBER),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").EQUAL,b("AdsProductSetFilterOperatorConfig").LESS_THAN,b("AdsProductSetFilterOperatorConfig").GREATER_THAN],defaultOperator:"EQUAL",invalidMessage:g._("Number of baths must be an integer"),showInProductsTab:!0};a.num_beds={text:g._("Number of beds"),placeholder:g._("Add number of beds"),field:new(b("AdsGenericFilterField"))("num_beds",b("AdsGenericFilterFieldType").NUMBER),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").EQUAL,b("AdsProductSetFilterOperatorConfig").LESS_THAN,b("AdsProductSetFilterOperatorConfig").GREATER_THAN],defaultOperator:"EQUAL",invalidMessage:g._("Number of beds must be an integer"),showInProductsTab:!0};a.postal_code={text:g._("Postal code"),placeholder:g._("Add postal code"),field:new(b("AdsGenericFilterField"))("postal_code",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL],defaultOperator:"EQUAL",invalidMessage:g._("Postal code must be an integer")};a.price={text:g._("Price"),placeholder:g._("Add price"),field:new(b("AdsGenericFilterField"))("price",b("AdsGenericFilterFieldType").CURRENCY),inputType:b("AdsProductSetFilterInputType").CURRENCY_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").GREATER_THAN,b("AdsProductSetFilterOperatorConfig").LESS_THAN],defaultOperator:"GREATER_THAN",invalidMessage:g._("Price must be an integer indicating the number of cents")};a.property_type={text:g._("Property type"),placeholder:g._("Add property type"),field:new(b("AdsGenericFilterField"))("property_type",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL],defaultOperator:"EQUAL",invalidMessage:g._("Property type must be a string"),showInProductsTab:!0};a.region={text:g._("Region"),placeholder:g._("Add region"),field:new(b("AdsGenericFilterField"))("region",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL],defaultOperator:"EQUAL",invalidMessage:g._("Region must be a string"),showInProductsTab:!0};a.agent_name={text:g._("Agent Name"),placeholder:g._("Add agent name"),field:new(b("AdsGenericFilterField"))("agent_name",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN],defaultOperator:"CONTAIN",invalidMessage:g._("Agent name must be a string"),showInProductsTab:!0};a.agent_company={text:g._("Agent Company"),placeholder:g._("Add agent company"),field:new(b("AdsGenericFilterField"))("agent_company",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN],defaultOperator:"CONTAIN",invalidMessage:g._("Agent company must be a string"),showInProductsTab:!0};e.exports=a}),null); __d("AdsHomeServiceProvidersSetFilterFieldConfig",["fbt","AdsGenericFilterField","AdsGenericFilterFieldType","AdsProductSetFilterFieldCommon","AdsProductSetFilterInputType","AdsProductSetFilterOperatorConfig"],(function(a,b,c,d,e,f,g){"use strict";a=babelHelpers["extends"]({},b("AdsProductSetFilterFieldCommon").getCommonConfig(["country_overrides","language_overrides"]));a.title={text:g._("Title"),placeholder:g._("Add Business Name\/Title"),field:new(b("AdsGenericFilterField"))("title",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL],defaultOperator:"EQUAL",invalidMessage:g._("Business Name\/Title must be a string")};e.exports=a}),null); __d("AdsHotelSetFilterFieldConfig",["fbt","AdsGenericFilterField","AdsGenericFilterFieldType","AdsProductSetFilterFieldCommon","AdsProductSetFilterInputType","AdsProductSetFilterOperatorConfig"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=babelHelpers["extends"]({},b("AdsProductSetFilterFieldCommon").getCommonConfig(["image_tags","country_overrides","language_overrides"]));a.base_price_amount={text:g._("Base Price"),placeholder:g._("Add base price"),field:new(b("AdsGenericFilterField"))("base_price_amount",b("AdsGenericFilterFieldType").CURRENCY),inputType:b("AdsProductSetFilterInputType").CURRENCY_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").GREATER_THAN,b("AdsProductSetFilterOperatorConfig").LESS_THAN],defaultOperator:"GREATER_THAN",invalidMessage:g._("Price must be an integer indicating the number of cents")};a.brand={text:g._("Brand"),placeholder:g._("Add brand"),field:new(b("AdsGenericFilterField"))("brand",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Brand must be a string"),showInProductsTab:!0};a.city={text:g._("City"),placeholder:g._("Add city"),field:new(b("AdsGenericFilterField"))("city",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("City must be a string"),showInProductsTab:!0};a.country={text:g._("Country"),placeholder:g._("Add country"),field:new(b("AdsGenericFilterField"))("country",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Country must be a string"),showInProductsTab:!0};a.neighborhood={text:g._("Neighborhood"),placeholder:g._("Add Neighborhood"),field:new(b("AdsGenericFilterField"))("neighborhood",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Neighborhood must be a string"),showInProductsTab:!0};a.hotel_id={text:g._("Hotel ID"),placeholder:g._("Add hotel id"),field:new(b("AdsGenericFilterField"))("hotel_id",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").EQUAL,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Hotel ID must be a string")};a.star_rating={text:g._("Star Rating"),placeholder:g._("Add star rating"),field:new(b("AdsGenericFilterField"))("star_rating",b("AdsGenericFilterFieldType").NUMBER),inputType:b("AdsProductSetFilterInputType").STAR_RATING_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").EQUAL,b("AdsProductSetFilterOperatorConfig").GREATER_THAN,b("AdsProductSetFilterOperatorConfig").LESS_THAN],defaultOperator:"GREATER_THAN",defaultValue:[3],values:[1,2,3,4,5],invalidMessage:g._("Must select star rating")};a.priority={text:g._("Priority"),placeholder:g._("Add priority"),field:new(b("AdsGenericFilterField"))("priority",b("AdsGenericFilterFieldType").NUMBER),inputType:b("AdsProductSetFilterInputType").INTEGER_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").EQUAL,b("AdsProductSetFilterOperatorConfig").GREATER_THAN],defaultOperator:"EQUAL",defaultValue:[5],values:[0,1,2,3,4,5],invalidMessage:g._("Must select priority")};e.exports=a}),null); __d("MediaTitleContentCategory",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({MOVIE:"MOVIE",MUSIC:"MUSIC",TV_SHOW:"TV_SHOW"})}),null); __d("MediaTitleMPAARating",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({G:"G",NC_17:"NC-17",NOT_RATED:"NOT_RATED",PG:"PG",PG_13:"PG-13",R:"R",UNRATED:"UNRATED"})}),null); __d("MediaTitleSource",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({NOT_ORIGINAL:"NOT_ORIGINAL",ORIGINAL:"ORIGINAL"})}),null); __d("AdsMediaTitleSetFilterFieldConfig",["fbt","AdsGenericFilterField","AdsGenericFilterFieldType","AdsProductSetFilterFieldCommon","AdsProductSetFilterInputType","AdsProductSetFilterOperatorConfig","MediaTitleContentCategory","MediaTitleMPAARating","MediaTitleSource","intlList"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=babelHelpers["extends"]({},b("AdsProductSetFilterFieldCommon").getCommonConfig(["country_overrides","language_overrides"]));a.title={text:g._("Title"),placeholder:g._("Add title"),field:new(b("AdsGenericFilterField"))("title",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Title must be a string"),isDefaultFilter:!0};a.content_category={text:g._("Content category"),placeholder:g._("Add content category"),field:new(b("AdsGenericFilterField"))("content_category",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL],defaultOperator:"EQUAL",invalidMessage:g._("Content category must be one of: {field list}",[g._param("field list",b("intlList")(Object.keys(b("MediaTitleContentCategory")).map(function(a){return"'"+b("MediaTitleContentCategory")[a]+"'"}),b("intlList").CONJUNCTIONS.OR))])};a.genres={text:g._("Genres"),placeholder:g._("Add genre"),field:new(b("AdsGenericFilterField"))("genres",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Genre must be a string")};a.performers={text:g._("Performers"),placeholder:g._("Add performer"),field:new(b("AdsGenericFilterField"))("performers",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Performer must be a string")};a.media_source={text:g._("Source"),placeholder:g._("Add source"),field:new(b("AdsGenericFilterField"))("media_source",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL],defaultOperator:"EQUAL",invalidMessage:g._("Source must be one of: {field list}",[g._param("field list",b("intlList")(Object.keys(b("MediaTitleSource")).map(function(a){return"'"+b("MediaTitleSource")[a]+"'"}),b("intlList").CONJUNCTIONS.OR))])};a.content_countries={text:g._("Content countries"),placeholder:g._("Add content country"),field:new(b("AdsGenericFilterField"))("content_countries",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Content country must be a string")};a.content_locale={text:g._("Content locale"),placeholder:g._("Add content locale"),field:new(b("AdsGenericFilterField"))("content_locale",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Content locale must be a string")};a.mpaa_rating={text:g._("MPAA rating"),placeholder:g._("Add MPAA rating"),field:new(b("AdsGenericFilterField"))("mpaa_rating",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL],defaultOperator:"EQUAL",invalidMessage:g._("MPAA rating must be one of: {field list}",[g._param("field list",b("intlList")(Object.keys(b("MediaTitleMPAARating")).map(function(a){return"'"+b("MediaTitleMPAARating")[a]+"'"}),b("intlList").CONJUNCTIONS.OR))])};a.season={text:g._("Season"),placeholder:g._("Add season"),field:new(b("AdsGenericFilterField"))("season",b("AdsGenericFilterFieldType").NUMBER),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Season must be an integer")};a.crew={text:g._("Crew member"),placeholder:g._("Add crew member"),field:new(b("AdsGenericFilterField"))("crew",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Crew member must be a string")};a.view_count_one_day={text:g._("Views in the last day"),placeholder:g._("Add views in the last day"),field:new(b("AdsGenericFilterField"))("view_count_one_day",b("AdsGenericFilterFieldType").NUMBER),inputType:b("AdsProductSetFilterInputType").MIXED_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").EQUAL,b("AdsProductSetFilterOperatorConfig").GREATER_THAN,b("AdsProductSetFilterOperatorConfig").LESS_THAN],defaultOperator:"GREATER_THAN",invalidMessage:g._("Views in the last day must be an integer")};a.view_count_seven_days={text:g._("Views in the last 7 days"),placeholder:g._("Add views in the last 7 days"),field:new(b("AdsGenericFilterField"))("view_count_seven_days",b("AdsGenericFilterFieldType").NUMBER),inputType:b("AdsProductSetFilterInputType").MIXED_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").EQUAL,b("AdsProductSetFilterOperatorConfig").GREATER_THAN,b("AdsProductSetFilterOperatorConfig").LESS_THAN],defaultOperator:"GREATER_THAN",invalidMessage:g._("Views in the last 7 days must be an integer")};a.view_count_fourteen_days={text:g._("Views in the last 14 days"),placeholder:g._("Add views in the last 14 days"),field:new(b("AdsGenericFilterField"))("view_count_fourteen_days",b("AdsGenericFilterFieldType").NUMBER),inputType:b("AdsProductSetFilterInputType").MIXED_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").EQUAL,b("AdsProductSetFilterOperatorConfig").GREATER_THAN,b("AdsProductSetFilterOperatorConfig").LESS_THAN],defaultOperator:"GREATER_THAN",invalidMessage:g._("Views in the last 14 days must be an integer")};a.view_count_twenty_eight_days={text:g._("Views in the last 28 days"),placeholder:g._("Add views in the last 28 days"),field:new(b("AdsGenericFilterField"))("view_count_twenty_eight_days",b("AdsGenericFilterFieldType").NUMBER),inputType:b("AdsProductSetFilterInputType").MIXED_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").EQUAL,b("AdsProductSetFilterOperatorConfig").GREATER_THAN,b("AdsProductSetFilterOperatorConfig").LESS_THAN],defaultOperator:"GREATER_THAN",invalidMessage:g._("Views in the last 28 days must be an integer")};a.view_count_eighty_four_days={text:g._("Views in the last 84 days"),placeholder:g._("Add views in the last 84 days"),field:new(b("AdsGenericFilterField"))("view_count_eighty_four_days",b("AdsGenericFilterFieldType").NUMBER),inputType:b("AdsProductSetFilterInputType").MIXED_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").EQUAL,b("AdsProductSetFilterOperatorConfig").GREATER_THAN,b("AdsProductSetFilterOperatorConfig").LESS_THAN],defaultOperator:"GREATER_THAN",invalidMessage:g._("Views in the last 84 days must be an integer")};a.price={text:g._("Price"),placeholder:g._("Add price"),field:new(b("AdsGenericFilterField"))("price",b("AdsGenericFilterFieldType").CURRENCY),inputType:b("AdsProductSetFilterInputType").CURRENCY_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").GREATER_THAN,b("AdsProductSetFilterOperatorConfig").LESS_THAN],defaultOperator:"GREATER_THAN",invalidMessage:g._("Price must be an integer indicating the number of cents")};e.exports=a}),null); __d("ProductAgeGroup",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({ADULT:"adult",ALL_AGES:"all ages",INFANT:"infant",KIDS:"kids",NEWBORN:"newborn",TEEN:"teen",TODDLER:"toddler",UNKNOWN:""})}),null); __d("ProductCondition",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({PC_NEW:"new",PC_REFURBISHED:"refurbished",PC_USED:"used",PC_CPO:"cpo",PC_OPEN_BOX_NEW:"open_box_new",UNKNOWN:""})}),null); __d("ProductGender",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({FEMALE:"female",MALE:"male",UNISEX:"unisex",UNKNOWN:""})}),null); __d("AdsProductSetFilterFieldConfig",["fbt","AdsGenericFilterField","AdsGenericFilterFieldType","AdsPECustomLabelsConfig","AdsProductSetFilterFieldCommon","AdsProductSetFilterInputType","AdsProductSetFilterOperatorConfig","ProductAgeGroup","ProductCondition","ProductGender","ProductItemAvailabilities","ProductsConfig","intlList"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();c=babelHelpers["extends"]({},b("AdsProductSetFilterFieldCommon").getCommonConfig(["country_overrides","language_overrides"]));c.name={text:g._("Name"),placeholder:g._("Add name"),field:new(b("AdsGenericFilterField"))("name",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").EQUAL,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Name must be a string")};c.size={text:g._("Size"),placeholder:g._("Add size"),field:new(b("AdsGenericFilterField"))("size",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").EQUAL,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Size must be a string")};c.color={text:g._("Color"),placeholder:g._("Add color"),field:new(b("AdsGenericFilterField"))("color",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").EQUAL,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Color must be a string")};c.material={text:g._("Material"),placeholder:g._("Add material"),field:new(b("AdsGenericFilterField"))("material",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").EQUAL,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Material must be a string")};c.pattern={text:g._("Pattern"),placeholder:g._("Add pattern"),field:new(b("AdsGenericFilterField"))("pattern",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").EQUAL,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Pattern must be a string")};c.condition={text:g._("Condition"),placeholder:g._("Add condition"),field:new(b("AdsGenericFilterField"))("condition",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").EQUAL,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL],defaultOperator:"EQUAL",invalidMessage:g._("Condition must be one of: {field list}",[g._param("field list",b("intlList")(Object.keys(b("ProductCondition")).map(function(a){return"'"+b("ProductCondition")[a]+"'"}),b("intlList").CONJUNCTIONS.OR))])};c.age_group={text:g._("Age group"),placeholder:g._("Add age group"),field:new(b("AdsGenericFilterField"))("age_group",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").EQUAL,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL],defaultOperator:"EQUAL",invalidMessage:g._("Age group must be one of: {field list}",[g._param("field list",b("intlList")(Object.keys(b("ProductAgeGroup")).map(function(a){return"'"+b("ProductAgeGroup")[a]+"'"}),b("intlList").CONJUNCTIONS.OR))])};c.gender={text:g._("Gender"),placeholder:g._("Add gender"),field:new(b("AdsGenericFilterField"))("gender",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").EQUAL,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL],defaultOperator:"EQUAL",invalidMessage:g._("Gender must be one of: {field list}",[g._param("field list",b("intlList")(Object.keys(b("ProductGender")).map(function(a){return"'"+b("ProductGender")[a]+"'"}),b("intlList").CONJUNCTIONS.OR))])};c.availability={text:g._("Availability"),placeholder:g._("Add availability"),field:new(b("AdsGenericFilterField"))("availability",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").EQUAL,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL],defaultOperator:"EQUAL",invalidMessage:g._("Availability must be one of: {field list}",[g._param("field list",b("intlList")(Object.keys(b("ProductItemAvailabilities")).map(function(a){return"'"+b("ProductItemAvailabilities")[a]+"'"}),b("intlList").CONJUNCTIONS.OR))])};c.brand={text:g._("Brand"),placeholder:g._("Add brand"),field:new(b("AdsGenericFilterField"))("brand",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Brand must be a string")};c.category={text:g._("Category"),placeholder:g._("Enter a category"),field:new(b("AdsGenericFilterField"))("category",b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").TOKENIZED_TEXT_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH],defaultOperator:"EQUAL",invalidMessage:g._("Category must be a string")};function a(a,c){return{text:g._("Custom Label {index}",[g._param("index",a)]),placeholder:g._({"*":"Enter Custom Label {index}'s value"},[g._param("index",a,[0])]),field:new(b("AdsGenericFilterField"))(c,b("AdsGenericFilterFieldType").STRING),inputType:b("AdsProductSetFilterInputType").MIXED_INPUT,operators:[b("AdsProductSetFilterOperatorConfig").IS_ANY_OF_THESE,b("AdsProductSetFilterOperatorConfig").NOT_EQUAL,b("AdsProductSetFilterOperatorConfig").CONTAIN,b("AdsProductSetFilterOperatorConfig").NOT_CONTAIN,b("AdsProductSetFilterOperatorConfig").STARTS_WITH].concat(b("ProductsConfig").gk.product_catalogue_string_double_fields?[b("AdsProductSetFilterOperatorConfig").GREATER_THAN,b("AdsProductSetFilterOperatorConfig").LESS_THAN]:[]),defaultOperator:"EQUAL",invalidMessage:g._({"*":"Custom Label {index} must be a string"},[g._param("index",a,[0])])}}if(b("AdsPECustomLabelsConfig").ads_pe_custom_labels_in_dpa_template_ui){d=["custom_label_0","custom_label_1","custom_label_2","custom_label_3","custom_label_4"];for(var f=0;f0&&b("firstx")(c);return c===!0&&b("AdsSplitTestUtils").isNonCreativeSplitTest(c)?d(b("firstx")(a)):d()},{name:e.id+".campaignErrorsSelector"});h.campaignSelector=i;h.campaignErrorsSelector=j;h.selectedCampaignIDsSelector=c;h.selectedCampaignsSelector=d;h.selectedRawCampaignsSelector=f;h.campaignPublishStatusSelector=b("adsCreateSelector")([c],function(a){return b("immutable").Map(a.map(function(a){return[a,{isNew:b("AdsCFCampaignUtils").isNewID(a),hasDraft:b("AdsCFCampaignUtils").isNewID(a),isDirty:!1,isDeleted:!1,changedFields:b("immutable").Set()}]}))},{name:e.id+".campaignPublishStatusSelector"});h.adgroupIDsForSelectedCampaignsSelector=b("adsCreateSelector")([b("adsCFAdgroupIDsSelector")],function(a){return b("LoadObject").withValue(a)},{name:e.id+".adgroupIDsForSelectedCampaignsSelector"});h.adgroupsForSelectedCampaignsSelector=b("adsCreateSelector")([b("adsCFAdgroupsSelector")],function(a){return b("LoadObject").withValue([].concat(a))},{name:e.id+".adgroupsForSelectedCampaignsSelector"});return h}return c}(b("AdsCFCampaignGroupContext"));e.exports=a}),null); __d("AdsCFCampaignEditorContext",["AdsCFCampaignContext","AdsUEditorContextFactory","adsCFActiveCampaignIDSelector","adsCreateSelector"],(function(a,b,c,d,e,f){"use strict";a=b("adsCreateSelector")([b("adsCFActiveCampaignIDSelector")],function(a){return a.ids.toArray()},{name:e.id+".selectedCampaignIDsSelector"});c=b("AdsUEditorContextFactory").getForIDsSelector(b("AdsCFCampaignContext"),a);e.exports=c}),null); __d("AdsCampaignGroupNameWorkerValidator",["AdsAbstractWorkerValidator","AdsAPICampaignGroupPaths","AdsNameWorkerValidatorUtils","AdsObjectTypes","expandPaths"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.id=function(){return"AdsCampaignGroupNameWorkerValidator"};d.getDependencies=function(){return{campaignGroup:b("expandPaths")([b("AdsAPICampaignGroupPaths").NAME])}};d.shouldValidate=function(a){return!0};d.validateData=function(a){a=a.campaignGroup;return b("AdsNameWorkerValidatorUtils").validate(a,b("AdsAPICampaignGroupPaths").NAME,b("AdsObjectTypes").CAMPAIGN_GROUP)};return c}(b("AdsAbstractWorkerValidator"));e.exports=a}),null); __d("AdsCampaignGroupNameValidator",["AdsCampaignGroupNameWorkerValidator","AdsNameValidatorUtils"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getName=function(){return e.id};d.getErrors=function(a){return b("AdsNameValidatorUtils").getErrors(a,"campaign")};return c}(b("AdsCampaignGroupNameWorkerValidator"));c=new a();e.exports=c}),null); __d("AdsCampaignGroupProductCatalogValidator",["errorCode","fbt","AdsAbstractValidator","AdsAPICampaignGroupPaths","AdsAPIObjectives","AdsError","expandPaths"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();var i=new Set([b("AdsAPIObjectives").PRODUCT_CATALOG_SALES]);a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getDependencies=function(){return{campaignGroup:b("expandPaths")([b("AdsAPICampaignGroupPaths").OBJECTIVE,b("AdsAPICampaignGroupPaths").PROMOTED_OBJECT.PRODUCT_CATALOG_ID])}};d.shouldValidate=function(a){a=a.campaignGroup;return i.has(a==null?void 0:a.objective)};d.validate=function(a){a=a.campaignGroup;var b=[];(a==null?void 0:(a=a.promoted_object)==null?void 0:a.product_catalog_id)||b.push(this.$AdsCampaignGroupProductCatalogValidator1());return b};d.$AdsCampaignGroupProductCatalogValidator1=function(){return new(b("AdsError"))(1885032,h._("Please select a catalog"),{level:b("AdsError").Level.WARN,field:"product_catalog_id",path:b("AdsAPICampaignGroupPaths").PROMOTED_OBJECT.PRODUCT_CATALOG_ID})};return c}(b("AdsAbstractValidator"));c=new a();e.exports=c}),null); __d("TargetingRelaxationConstants",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({NONE:"none",EXPANSION:"expansion_all"})}),null); __d("AdsCommonSplitTestValidationUtils",["AdsAggregateTargetingSpecsSchema","AdsAPIAdAssetFeedFields","AdsAPIAdgroupPaths","AdsAPICampaignRecord","AdsAPITargetFields","AdsBulkValueUtils","AdsPlacementAPISpecReaderUtils","AdsRunStatusType","AdsSplitTestUtils","AdsUniformValue","AdsUtils","TargetingRelaxationConstants","areEqual","fastDeepCopy","filterObject","immutable","mapObject","objectValues","setByPath"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("AdsUtils").isObject,h=b("immutable").Map;c=["is_autobid","optimization_goal","optimization_sub_event","billing_event","bid_amount","bid_constraints","is_average_price_pacing","attribution_spec","attribution_window_days","status","saved_audience_id","targeting","placement","promoted_object","frequency_control_specs","bid_strategy"];d=["creative","objective","status","effective_status","asset_feed_spec","platform_customizations","playable_asset_id","product_set_id","interactive_components_spec"];var i=h([[b("AdsAPITargetFields").TARGETING_RELAX_OPTION,b("TargetingRelaxationConstants").NONE]]);function a(a,b,c){return!b.every(function(b){return k(a,b,c)})}function j(a){var b;return(b=a.saved_audience_id)!=null?b:(b=a.saved_audience)==null?void 0:b.id}function k(a,c,d){__p&&__p();if(!a||!a.length)return!0;var e=a.map(function(a){__p&&__p();if(c==="targeting"){if(j(a)!=null)return null;var e=a[c];return o(e&&e.toJS?e.toJS():e)}else if(c==="placement"){e=a instanceof b("AdsAPICampaignRecord")?b("AdsPlacementAPISpecReaderUtils").convertCampaignRecordToPlacementSpec(a):b("AdsPlacementAPISpecReaderUtils").convertCampaignToPlacementSpec(a);return e}else if(c==="saved_audience_id")return j(a);else if(c==="creative")return m(a,d);else if(c==="effective_status"){e=a[c];return e===b("AdsRunStatusType").PENDING_REVIEW?b("AdsRunStatusType").ACTIVE:e}else if(c==="asset_feed_spec"){var f;e=(e=a.creative)==null?void 0:e.asset_feed_spec;e=babelHelpers["extends"]({},e&&e.toJS?e.toJS():e,(f={},f[b("AdsAPIAdAssetFeedFields").ASSET_CUSTOMIZATION_RULES]=void 0,f[b("AdsAPIAdAssetFeedFields").TARGET_RULES]=void 0,f));b("AdsSplitTestUtils").canCreativesBeDifferent(d)||(e[b("AdsAPIAdAssetFeedFields").VIDEOS]=void 0);return e}else if(c==="platform_customizations"){e=(f=a.creative)==null?void 0:f.platform_customizations;return e&&e.toJS?e.toJS():e}else if(c==="playable_asset_id"){return(f=a.creative)==null?void 0:f.playable_asset_id}else if(c==="product_set_id"){return(e=a.creative)==null?void 0:e.product_set_id}else if(c==="optimization_sub_event"){f=a[c];return f==="NONE"?null:f}else if(c==="interactive_components_spec"){return(e=a.creative)==null?void 0:e.interactive_components_spec}else{f=a[c];return f&&f.toJS?f.toJS():f}});if(c==="targeting"||c==="placement"){a=b("AdsBulkValueUtils").aggregateDeep(b("AdsAggregateTargetingSpecsSchema"),e);return b("objectValues")(a).every(function(a){return a instanceof b("AdsUniformValue")})}return e.slice(1).every(function(a){return b("areEqual")(l(a),l(e[0]))})}function l(a){return a==null||a===!1||a===0||a===""||Array.isArray(a)&&a.length===0?null:a}function m(a,c){__p&&__p();var d;d=(d=a.creative)==null?void 0:d.object_story_spec;if(d==null){var e=["effective_instagram_story_id","effective_object_story_id","id","instagram_actor_id","instagram_permalink_url","thumbnail_url","url_tags","video_id"].concat(b("AdsSplitTestUtils").canCreativesBeDifferent(c)?[]:["object_story_id"]);a=a.creative;if(!a)return{};a=h.isMap(a)?a:h(a.toJS?a.toJS():a);a=a.filter(function(a,b){return a!=null&&a!==!1&&!(b==="authorization_category"&&a==="NONE")&&!e.includes(b)});return n(a.toJS())}d=b("fastDeepCopy")(babelHelpers["extends"]({},d&&d.toJS?d.toJS():d,(a={},a.page_id=void 0,a.instagram_actor_id=void 0,a)));b("AdsSplitTestUtils").canCreativesBeDifferent(c)||(b("setByPath")(d,["link_data","attachment_style"],null),b("setByPath")(d,["video_data","image_hash"],null),b("setByPath")(d,["video_data","link_description"],void 0),b("setByPath")(d,b("AdsAPIAdgroupPaths").CREATIVE.OBJECT_STORY_SPEC.VIDEO_DATA.CALL_TO_ACTION.VALUE.LINK.slice(2),null),b("setByPath")(d,b("AdsAPIAdgroupPaths").CREATIVE.OBJECT_STORY_SPEC.VIDEO_DATA.COLLECTION_THUMBNAILS.slice(2),[]));return n(d)}function n(a){a=b("mapObject")(a,function(a){return g(a)?n(a):a});return b("filterObject")(a,function(a){return a!==""})}function o(a){a=b("AdsPlacementAPISpecReaderUtils").convertTargetingSpecToSpecWithoutPlacement(a);var c=babelHelpers["extends"]({},a);Array.from(i.keys()).forEach(function(a){c[a]===i.get(a)&&delete c[a]});return c}e.exports={ADGROUP_FIELDS_TO_VALIDATE:d,CAMPAIGN_FIELDS_TO_VALIDATE:c,areAdObjectsDifferent:a,haveUniformField:k}}),null); __d("AdsIterativeSplitTestValidationUtils",["errorCode","AdsCommonSplitTestValidationUtils","distinctArray","firstx","immutable"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h=b("AdsCommonSplitTestValidationUtils").ADGROUP_FIELDS_TO_VALIDATE.filter(function(a){return a!=="effective_status"}),i=new Set([1885969,1885953]);function a(a,c,d){if(a.length===0)return!0;if(k(a))return!0;a=b("distinctArray")(c.map(function(a){return a.length}));return a.length>1||b("firstx")(a)===0?!0:j(c,d)}function j(a,c){__p&&__p();if(a.every(function(a){return a.length===0}))return!1;var d=b("firstx")(a),e=b("firstx")(d);a=a.slice(1);var f=a.map(function(a){return a.find(function(a){return!l([e,a],c)})});if(f.some(function(a){return!a}))return!0;a=a.map(function(a,b){return a.filter(function(a){return a!==f[b]})});return j([d.filter(function(a){return a!==e})].concat(a),c)}function k(a){return b("AdsCommonSplitTestValidationUtils").areAdObjectsDifferent(a,b("AdsCommonSplitTestValidationUtils").CAMPAIGN_FIELDS_TO_VALIDATE,null)}function l(a,c){return b("AdsCommonSplitTestValidationUtils").areAdObjectsDifferent(a,c?b("AdsCommonSplitTestValidationUtils").ADGROUP_FIELDS_TO_VALIDATE:h,null)}function c(a){return a.map(function(a,b){return a.filter(function(a){return i.has(a.key)})})}e.exports={ADGROUP_FIELDS_TO_VALIDATE_FOR_NEW_TEST:h,areAdgroupsDifferent:l,areCampaignsDifferent:k,areVariantsDifferent:a,filterToBudgetErrors:c}}),null); __d("AdsSplitTestValidationUtils",["errorCode","errorDesc","AdsAPICampaignGroupPaths","AdsAPIObjectives","AdsCommonSplitTestValidationUtils","AdsError","AdsIterativeSplitTestValidationUtils","AdsSplitTestStrings","AdsSplitTestVariable","AdsSplitTestVariableFieldMapping","adsAccountGK","flattenArray","forEachObject","immutable","nullthrows","objectValues"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j=b("AdsCommonSplitTestValidationUtils").ADGROUP_FIELDS_TO_VALIDATE,k=b("AdsCommonSplitTestValidationUtils").CAMPAIGN_FIELDS_TO_VALIDATE,l=b("AdsCommonSplitTestValidationUtils").haveUniformField,m=(i={},i.campaign=new Set([1885846,1885619,1885620,1885482,1885975,1885610,1885610]),i.ad_set=new Set([1885619,1885482,1885975,1885612,1885613]),i.ad=new Set([1885846,1885620,1885975]),i.opportunities=new Set(),i.ad_account=new Set(),i.topline=new Set(),i.unique_adcreative=new Set(),i),n=b("objectValues")(m).reduce(function(a,b){return a.union(b.values())},b("immutable").Set()),o=new(b("AdsError"))(1885486,h._(function(a,b){return a._("Your split test length needs to be between {min_days} and {max_days} days. Please edit your ad set to adjust the schedule.",[a._param("min_days",b.min_days),a._param("max_days",b.max_days)])},{min_days:1,max_days:30}),{level:b("AdsError").Level.WARN,field:"end_time",path:b("AdsAPICampaignGroupPaths").SPLIT_TEST_CONFIG.END_TIME});function p(a){var b=[];for(var c=0;cb.instant}function s(a,b){return!b||a.addDays(30).instant0?(d=d.set("hasTransitionedToNextAdgroup",!0),b("AdsDataAtom").addPostDispatchCallback(function(){return b("AdsCFXAdgroupCloneForCreativeSplitTestDataAction").dispatch({sourceID:c[0],ids:c.slice(1),retainImageSpecs:!0},{line:"121",module:"AdsCFSelectedAdgroupStore.js"})})):!a.get("hasTransitionedToCreativeSplitTest")&&c.length===2&&a.get("previousSelectedAdgroupIndex")===0&&a.get("selectedAdgroupIndex")===1&&(d=d.set("hasTransitionedToNextAdgroup",!0),b("AdsDataAtom").addPostDispatchCallback(function(){return b("AdsCFXAdgroupCloneForCreativeSplitTestDataAction").dispatch({sourceID:c[0],ids:[c[1]],retainImageSpecs:!1},{line:"138",module:"AdsCFSelectedAdgroupStore.js"})}));return d};d.__resetState=function(a){return a.set("selectedAdgroupIndex",0).set("previousSelectedAdgroupIndex",0).set("hasTransitionedToCreativeSplitTest",!1).set("hasTransitionedToNextAdgroup",!1)};return c}(b("FluxReduceStore"));a.__moduleID=e.id;e.exports=new a(b("AdsDataAtom"))}),null); __d("adsCFActiveAdgroupIDsSelector",["invariant","AdsCFAdgroupDataProvider","AdsCFAdgroupStateUtils","AdsCFSelectedAdgroupStore","AdsStoreUtils","adsCFIsCreativeSplitTestSelector","adsCreateSelector"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=b("adsCreateSelector")([b("AdsCFAdgroupDataProvider").toFluxSelector(),b("AdsStoreUtils").toSelector(b("AdsCFSelectedAdgroupStore")),b("adsCFIsCreativeSplitTestSelector")],function(a,c,d){a=b("AdsCFAdgroupStateUtils").getAdgroupIDs(a);if(!d)return a;d=c.selectedAdgroupIndex;if(a.length===0)return[];d